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

response header lowercase #172

Closed
transtone opened this issue Jun 9, 2023 · 1 comment
Closed

response header lowercase #172

transtone opened this issue Jun 9, 2023 · 1 comment

Comments

@transtone
Copy link

transtone commented Jun 9, 2023

set a header with

response.header('Access-Control-Allow-Credentials', 'false')

the header become lowercase access-control-allow-credentials.
Is there any settings about this?

name = name.toLowerCase();

why set this?

@kartikk221
Copy link
Owner

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers HTTP headers are meant to be case-insensitive hence they are lowercased to prevent incorrect case readings. Why is case-sensitivity important for you in your use case?

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

No branches or pull requests

2 participants