We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
h3 v1 and v2 development.
I changed examples/cors.ts to follows.
examples/cors.ts
handleCors(event, { origin: "*", maxAge: "600", })
But access-control-max-age header does not respond.
access-control-max-age
curl -v -X OPTIONS -H "Origin: http://localhost" -H "access-control-request-method: GET" "http://localhost:3000/hello" # < HTTP/1.1 204 No Content # < access-control-allow-origin: * # < Date: Thu, 08 Aug 2024 06:18:21 GMT # < Connection: keep-alive # < Keep-Alive: timeout=5
createMaxAgeHeader does not called.
createMaxAgeHeader
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
h3 v1 and v2 development.
Reproduction
I changed
examples/cors.ts
to follows.But
access-control-max-age
header does not respond.Describe the bug
createMaxAgeHeader
does not called.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: