Header Override
The x-corsfix-headers
request header allows you to override HTTP request headers when making requests through the CORS proxy. This is particularly useful when you need to modify headers that are normally restricted in client-side JavaScript.
Using x-corsfix-headers
To override headers, add the x-corsfix-headers
header to your request header with a JSON-stringified object containing your desired headers.
Example:
Overridable Forbidden Headers
The following normally forbidden headers can be modified using x-corsfix-headers
:
- Referer
- Origin
- User-Agent
- etc.
See the MDN Web Docs for a complete list of forbidden headers.