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 SE CORS example app does not respond properly when an unapproved origin is passed. This might be a symptom of general CORS issues rather than specifically with the example. Or maybe it's the example.
Sending a CORS preflight request with an unapproved origin should return a 403 - Forbidden. Instead the request is accepted and processed.
Steps to reproduce
Build and start the 4.0 SE CORS example. The application.yaml includes these settings:
HTTP/1.1 200 OK
Date: Fri, 17 Nov 2023 10:19:58 -0600
Access-Control-Allow-Methods: PUT
Access-Control-Allow-Origin: http://bad.com
Access-Control-Max-Age: 3600
Connection: keep-alive
Content-Length: 0
which indicates that CORS has accepted the origin http://bad.com but it should be rejected because the configuration should allow only origins http://foo.com and http://there.com.
Do the same sequence but with the 3.x SE CORS example and the response is this:
HTTP/1.1 403 CORS origin is not in allowed list
Date: Fri, 17 Nov 2023 10:12:24 -0600
connection: keep-alive
content-length: 0
The text was updated successfully, but these errors were encountered:
Environment Details
Problem Description
The SE CORS example app does not respond properly when an unapproved origin is passed. This might be a symptom of general CORS issues rather than specifically with the example. Or maybe it's the example.
Sending a CORS preflight request with an unapproved origin should return a 403 - Forbidden. Instead the request is accepted and processed.
Steps to reproduce
application.yaml
includes these settings:http://bad.com
but it should be rejected because the configuration should allow only originshttp://foo.com
andhttp://there.com
.Do the same sequence but with the 3.x SE CORS example and the response is this:
The text was updated successfully, but these errors were encountered: