API gateway gives status 200 but browser reports error 403

0

I am testing my API gateway to S3 bucket via a simple HTTP webform to upload an image. The web browser reports failed to load resource. However I have enabled logging on the API gateway and it is saying status 200 successful. The bucket itself has public access alllowed for now. The browser side console also states "missing authentication token". Now I'm wondering if the token is needed for the API gateway or S3?

3개 답변
1
수락된 답변

This error sometimes means that you are calling the wrong endpoint in the API. I would recommend that you enable API Gateway Execution Logs to see what is happening.

profile pictureAWS
전문가
Uri
답변함 2달 전
profile picture
전문가
검토됨 2달 전
0

Hi Uri - will give that a try. I've got logging turnied on with the default settings - I'll try to add everything and see.

답변함 2달 전
0

Hi Urr, I've tested it again with the front end I am designing in Android Studio/Kotlin and the gateway is working perfectly with requests sent from there. Obviosly a problem with the html in the webform. we can close this

답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠