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
We are trying to enforce restricted access to the server ONLY from the "trusted" websites via CORS. We apply restrictions to the origins, methods, and headers. Those restrictions only apply to the OPTIONS requests, and the server is ignoring them for all other request types.
To Reproduce
Expected behavior
The server is rejecting all requests except whitelisted in cfg.http.cors.(origins, methods, header). The server responds with HTTP 403 and includes Vary: Origin header for invalid (not whitelisted) domain.
Actual behavior:
When the browser is sending the OPTIONS request, the server provides allowed methods/headers for the origin, but still allows all requests from all origins (it means that the browser still can make GET, POST, and other requests regardless of the origin and server doesn't reject it)
Steps to reproduce the behavior:
there is a fragment of the code below where we set the allowed origins, methods, header:
We are trying to enforce restricted access to the server ONLY from the "trusted" websites via CORS. We apply restrictions to the origins, methods, and headers. Those restrictions only apply to the OPTIONS requests, and the server is ignoring them for all other request types.
To Reproduce
Expected behavior
The server is rejecting all requests except whitelisted in cfg.http.cors.(origins, methods, header). The server responds with HTTP 403 and includes Vary: Origin header for invalid (not whitelisted) domain.
Actual behavior:
When the browser is sending the OPTIONS request, the server provides allowed methods/headers for the origin, but still allows all requests from all origins (it means that the browser still can make GET, POST, and other requests regardless of the origin and server doesn't reject it)
Steps to reproduce the behavior:
there is a fragment of the code below where we set the allowed origins, methods, header:
This issue causes a violation of security compliance requirements and blocks our component's integration :(
Thank you!
Roman.
The text was updated successfully, but these errors were encountered: