My API has an OPTIONS method that is implemented through a Mock integration that is set to return the required CORS headers.
The problem is that it returns 500 Internal Server Error when there is no Content-Type set on the OPTIONS request. It is returning proper CORS headers with a 200 Success when Content-Type is set to application/json.
How do I fix this as the OPTIONS request is sent by the browser and I don't think I'm allowed to set Content-Type header on it?