I'm trying to access the Amazon Product Advertising API through javascript, but whether I'm using axios or an all-in-one solution like apac, I get an "Access-Control-Allow-Origin" error. I don't see anywhere in Amazon's documentation on how to resolve this..
Here is the error:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8080' is therefore not allowed access.
If an opaque response serves your needs, set the request's mode
to 'no-cors' to fetch the resource with CORS disabled.
I also see nowhere documenting how to set the request mode to 'no-cors'. Does anyone have a workaround for this?