cors icon indicating copy to clipboard operation
cors copied to clipboard

Access-Control-Allow-Origin set to '*' even when 'Origin' is supplied

Open 75lb opened this issue 1 year ago • 1 comments

The recent breaking change to fix this advisory fixes the scenario where an origin is not specified but it breaks the scenario where it is.

If an Origin is supplied in the request, the spec states the server "must return the origin for the specific client making the request" (i.e. the origin passed in). All my apps and test suites are configured to expect this behaviour, however this library now returns * instead.

Could you confirm that was the intended behaviour, to ignore the incoming request origin in all scenarios?

75lb avatar Jan 08 '24 11:01 75lb