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
CORS preflight requests always fail with HTTP 400 response.
Overblog\GraphQLBundle\Controller\GraphController should check whether we have a CORS preflight request, before processing queries. This can be easily done checking whether the request method is 'OPTIONS'.
A CORS preflight request should result in an empty 200 response. So when we have method OPTIONS, return empty response and do not process queries. The empty response should also contain CORS headers. Maybe some defaults and configurable via extension.