I am using API gateway and here is my api gateway:
So it is just one post method and more details of it is as follows:
So when I run enable cors I get the following error:
The issue is related to lack og application/json on 200 response back on the method response as is mentioned in the following link:
Fail to enable CORS for API Gateway functions
To fix the issue I tried to add it manually
Now I added application/json empty. But still when i try to enable cors I get invalid status code specified . Any idea how to fix it?