devAquila avatar image
devAquila asked ·

CORS issues with LWA


We are currently trying to integrate LWA to a React app we are working on, but we have been facing an issue that we do not know how to solve.

We are using the passport-amazon package to manage the user authentication, the app is deployed on 'localhost:3010', and we have entered the site's URL on the amazon dev console to allow it to send/receive requests. Everything works fine until you type in your amazon credentials, then the amazon window closes itself and an error is displayed in the client console :

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (Reason: CORS header 'Access-Control-Allow-Origin' missing).

Did we miss anything important from the documentation ?

login with amazon
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers