Skip to content
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

Node-fetch allows setting forbidden headers #1781

Open
infinity0 opened this issue Oct 9, 2023 · 3 comments
Open

Node-fetch allows setting forbidden headers #1781

infinity0 opened this issue Oct 9, 2023 · 3 comments
Labels

Comments

@infinity0
Copy link

https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name

Results in bugs like #1780

@infinity0 infinity0 added the bug label Oct 9, 2023
@infinity0
Copy link
Author

@infinity0
Copy link
Author

There seems to be some disagreement on whether server environments should follow the WhatWG spec in this area, e.g. denoland/deno#6868. But if you decide this is "not a bug and working as intended", then #1780 is a bug. If you decide this is a bug and fix it, then you can decide that #1780 is not a bug and close it.

@jimmywarting
Copy link
Collaborator

Hmm, i think it could be useful to do something like: fetch(ip) where you then decide the host.
things can be behind a virtual host.
meaning that two websites could co-exist on the same ip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants