New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant set "origin" header with chrome extention #166
Comments
@Tineshnehete I have looked into the From the statement in the WebRequest API explainer link you provided:
This is a problem for us as we cannot expect us to have access to the "requested URL" always. Hence, the browser will not let the interception to take place, I would love to be proven wrong though, because if this approach works, this can actually help with a lot of things for Hoppscotch. |
Issue
Due to security checks chrom blocks setting custom the headers. So we can set custom origin header for Api request.
Reason
We are using axios for proxying the request , but as axios uses xhr to make http request chrome blocks or restrict to set custome origin header .
Fix
To overcome we can update chrome extention and switch to https://developer.chrome.com/docs/extensions/reference/webRequest/
as far as i explored i can find any soln for axios proxy
The text was updated successfully, but these errors were encountered: