You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The allow-credentials: true option does not set the Access-Control-Allow-Credentials header on responses with methods other than .option. Evidence shows that it only adds Access-Control-Allow-Credentials when the request is an options method.
My browser (chrome/edge) is requiring that on get methods too. I can't test nor verify which other methods require these headers at this time, but it is clear get needs them.
HTTP/1.1 500 Internal Server Error
Access-Control-Allow-Origin: http://localhost:8081
Vary: Origin, Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 89
Server: veb
chrome errors
Access to fetch at 'http://localhost:8080/veb/endoint' from origin 'http://localhost:8081' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'.
Expected Behavior
Access-Control-Allow-Credentials should be set when browsers expect it.
Current Behavior
Access-Control-Allow-Credentials is not set when browser needs it
Describe the bug
The
allow-credentials: trueoption does not set theAccess-Control-Allow-Credentialsheader on responses with methods other than.option.Evidence shows that it only adds Access-Control-Allow-Credentials when the request is an options method.
My browser (chrome/edge) is requiring that on get methods too. I can't test nor verify which other methods require these headers at this time, but it is clear get needs them.
Reproduction Steps
Register middleware
Perform get request with credentials: include
Header is missing
chrome errors
Expected Behavior
Access-Control-Allow-Credentials should be set when browsers expect it.
Current Behavior
Access-Control-Allow-Credentials is not set when browser needs it
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.10 0628bf3
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.