OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

AWS API Gateway returning CORS error even if enabled

  • Thread starter Thread starter Farid Arbai
  • Start date Start date
F

Farid Arbai

Guest
I'm calling an API to my AWS API Gateway and I'm getting a CORS error, not sure why as I have all the CORS parameters enabled.

The error from the browser console: enter image description here

The code: enter image description here

The AWS API Gateway configuration: enter image description here

Any idea how to work it out? I used to do this for a living and still can't figure it out - Many tanks in advance!!

Tried everything I came through, expecting something I missed

<p>I'm calling an API to my AWS API Gateway and I'm getting a CORS error, not sure why as I have all the CORS parameters enabled.</p>
<p>The error from the browser console:
<a href="https://i.sstatic.net/EDinwvQZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EDinwvQZ.png" alt="enter image description here" /></a></p>
<p>The code:
<a href="https://i.sstatic.net/HPf39nOy.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/HPf39nOy.png" alt="enter image description here" /></a></p>
<p>The AWS API Gateway configuration:
<a href="https://i.sstatic.net/2YVzQNM6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2YVzQNM6.png" alt="enter image description here" /></a></p>
<p>Any idea how to work it out? I used to do this for a living and still can't figure it out - Many tanks in advance!!</p>
<p>Tried everything I came through, expecting something I missed</p>
 

Online statistics

Members online
0
Guests online
4
Total visitors
4
Top