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
For APIs where you want to support sending credentials to the function, this will not work. You need to specify the request Host as the Origin in that case.
I'd like to discuss adding the possibility to handle
OPTIONS
requests as well in the handler.This would allow to handle CORS requests that initiate a Preflight request.
The handler could then act depending on the request method, as shown in the following example:
The change is backwards compatible, we'd only have to add one more route to sinatra.
We could also discuss to allow all available request methods.
The text was updated successfully, but these errors were encountered: