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
Motivation:
We added some level of CORS configuration support in #1583. This change adds
further flexibility.
Modifications:
- Add an 'originBased' mode where the value of the origin header is
returned in the response head.
- Add a custom fallback where the user can specify a callback which
is passed the value of the origin header and returns the value to
return in the 'access-control-allow-origin' response header (or nil,
if the origin is not allowed).
Result:
More flexibility for CORS.
0 commit comments