Rob--W / cors-anywhere

CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.
MIT License
8.5k stars 5.92k forks source link

Are Headers send too ? #485

Closed exopole closed 1 month ago

exopole commented 1 month ago

Hi,

I want to use cors-anywhere to make login request for open id connect so I would like to know if headers are send too. Indeed for the connection I need to add the "Authorization" header.

Thank you in advance

Rob--W commented 1 month ago

The header is not automatically added by the browser because credentials are not supported. If you specify the header explicitly, e.g. with the headers option of fetch or the setRequestHeader method of XMLHttpRequest, then it will be forwarded.