Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
✈ CORS preflight requests
When CORS setting is enabled for an environment, Mockoon will respond with the following headers and status 200 to all CORS preflight OPTIONS requests which are not catched by an OPTIONS route:
Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS Access-Control-Allow-Headers: Content-Type, Origin, Accept, Authorization, Content-Length, X-Requested-With
If you define an OPTIONS route you must define CORS headers manually for this route.