grantila / fetch-h2

HTTP/1+2 Fetch API client for Node.js
MIT License
336 stars 16 forks source link

Why limit headers nodejs is not browsers #68

Closed mogu1121 closed 4 years ago

colinbendell commented 4 years ago

The Fetch spec specifically guards headers to enforce a security by design approach. If you want to remove the standard guards, you can use the allowForbiddenHeaders: true setting in the fetch() invocation.