Seller Central
Seller Forums

Amazon Seller Forums » Login With Amazon » Questions about Login With Amazon

Thread: Allowed Javascript Origins error
This question is not answered.


Permlink Replies: 2 - Pages: 1 - Last Post: 24 Jul, 2017 11:59 AM by: Pulkit M (LWA) Threads: [ Previous | Next ]
IdentiFire

Posts: 1
Registered: 05 Jul, 16 8:36 PM
Posted on: 18 Jul, 2017 7:23 AM  
Click to report abuse...   Click to reply to this thread Reply
There's been quite a few threads on this, but can't seem to find a fix for this that is in laymans terms. The error on my checkout with amazon button is the follow:

Error Summary
400 Bad Request
The domain on which you are using the JavaScript SDK has not been whitelisted for your application. Please add your website domain in the 'Allowed JavaScript Origins' section under 'Web Settings' on the Amazon Seller Central App Console for Login with Amazon.
Request Details
client_id=amzn1.application-oa2-client.72e77ed1faaa413cb655a988146b0873
redirect_uri=https%3A%2F%2Fapi-cdn.amazon.com%2Fsdk%2F2017-06-26-ffwvf3yd%2Ftopic.html%3Furi%3Dhttp%253A%252F%252Fidentifiresafety.com%252Fcart%252F%26proxy%3Damazon-proxy-https-api_cdn_amazon_com%26topic%3DRGHn4CSXr5PmxGlZ%26version%3D1
response_type=token
language=
ui_locales=
scope=profile%20postal_code%20payments%3Awidget%20payments%3Ashipping_address%20payments%3Abilling_address

We had the pay with amazon up and running and it was working great. However, it stopped working and I am not sure why. I have my website in the Allowed javascript origins under web settings in the Login with amazon applications page. I even have a 2nd optional page there. It is not working and not sure how to fix this. Any help would be greatly appreciated. Thank you.
Is this a helpful question? Yes 0   No
2 Replies
Sort replies by:
Bulmash

Posts: 1
Registered: 21 Jul, 16 5:11 PM
Posted on: 19 Jul, 2017 10:56 AM   in response to: IdentiFire in response to: IdentiFire  
Click to report abuse...   Click to reply to this thread Reply
What is the URL where you're using the JavaScript SDK to provide a login button and what are the domains you're listing in the allowed origins section?
Was this reply helpful? Yes 0   No 0
Pulkit M (LWA)

Posts: 31
Registered: 11 Aug, 14 4:57 PM
Posted on: 24 Jul, 2017 11:59 AM   in response to: IdentiFire in response to: IdentiFire  
Click to report abuse...   Click to reply to this thread Reply
The domain of your website originating the request seems to be http://identifiresafety.com/cart/ while the domain you added as an Allowed Javascript Origin is on https (Note the difference http vs https).

Please ensure that the domain of your cart page is on https instead of http. Due to security reasons, we do not consider domains on http as a valid Allowed Javascript Origin. Please feel free to reach to us if you face any other issue.
Was this reply helpful? Yes 0   No 0