Rob--W / cors-anywhere

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

Add remove headers #340

Closed Androz2091 closed 3 years ago

Androz2091 commented 3 years ago

Users can now use Remove-Headers: User-Agent, Test, so the proxy can be used for different websites (for some websites I needed to keep it, and for others I needed to let it)

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 821de2a7e0f925378038ccfd5d276a7593ef7310 on Androz2091:patch-1 into 9f1af8243463ab71b63b889fff5606bd908f36cc on Rob--W:master.

Rob--W commented 3 years ago

This functionality is outside the scope of the proxy. If you want to remove the header, don't pass it from the client. If you want to remove it for all requests, use the removeHeaders option at the server.