angular - "Enable CORS" in AWS API Gateway resource? -
i have problem aws api gateway. i'm developing web application angular 4 (using typescript language), if invoke put method frontend, following error message appears:
method put not allowed access-control-allow-methods in preflight response. and it's strange because in aws console put method works (i did many tests directly api gateway console stage after deploy, , works well). if go "actions/enable cors" methods have check, included put method, , don't explain problem api gateway.
why error if seems ok in api gateway? there way change these cors?
please follow below steps,
- create new options method under /services resource
- create , populate access-control-allow-origin/method/headers in options method.
enable cors below after create options
source :- https://forums.aws.amazon.com/thread.jspa?messageid=644489

Comments
Post a Comment