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
I might be mistaken, but from what I gathered from the spec is that multiple domains are not supported ( https://www.w3.org/TR/cors/#access-control-allow-credentials-response-header ).
To use multiple origins with this middleware, use the feature to pass a function in options.origin that compares the origin of the request (this.get('origin') in Koa 1) with your array and echos back the request origin if it is on your list.
The option says
origin
expects a string, is it possible to allow an array of strings so you can allow more than one domain?The text was updated successfully, but these errors were encountered: