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 https://www.amazon.com/ap/oa?response_type=code&redirect_url=http%3A%2Flocalhost%3A3010&client_id=amzn1.application-oa2-client..651d05fc7e624c8c848fef186463a1f8. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
Did we miss anything important from the documentation ?