Skip to content

Conversation

climba03003
Copy link
Contributor

Resolve #34

"User-Agent" should only set in the NodeJS environment.

Although, the specification [1] [2] allow the modification of "User-Agent". Some of the broswer (e.g. Chrome, Safari) will block this action as it is not secure.

As axios require "process" in the package but woocommerce-rest-api-js-lib do not. Change to use window element to check if it is node.
Copy link
Contributor

@claudiosanches claudiosanches left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@claudiosanches claudiosanches merged commit 90b8bd5 into woocommerce:master Jan 30, 2020
@raikusy
Copy link

raikusy commented Apr 4, 2020

Can anyone build a latest release with this fix?
It seems this fix hasn't been released yet.
Or how can I install this fix manually?
@climba03003 @claudiosanches

@sebacruz
Copy link

Hello!

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

I have error when send "GET"

4 participants