2 個答案
- 最新
- 最多得票
- 最多評論
0
From your response it looks like you are getting an "ForbiddenException" when calling OPTIONS method. I'm suspecting that you have some form of authentication enabled for the OPTIONS method, like API Key. The pre-flight is controlled by the browser and normally no authentication is added in the request header.
If this is your case, try and remove API Key or any other authentication from the OPTIONS method.
0
Thank you, I have solved my problem. Actually I made a mistake. I renamed the stage when I deployed the api. Cause I have been using the wrong api when using Amplify to call the api.
已回答 1 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前