Issue regarding Access-Control-Allow-Origin header to AWS

  • 1 March 2017
  • 2 replies

 Hi Support,

I am developing an apps and using AWS Javascript SDK to make API to AWS S3 bucket. The problem is that I encountered a CORS issue which disallow my call to AWS S3 bucket. I have no problem to use the same code on my server to talk to S3.

============ ERROR =============
XMLHttpRequest cannot load
Response to preflight request doesn't pass access control check: No
'Access-Control-Allow-Origin' header is present on the requested
resource. Origin '' is therefore not
allowed access.

Error: Network Failure
  at XMLHttpRequest.<anonymous> (aws-sdk-2.9.0.min.js?_=1488368547259:6) "NetworkingError: Network Failure
  at XMLHttpRequest.<anonymous> ("

That being said, I suspect it is something to do with domain whitelisting in manifest.xml file. After did that, it returned error when validate the code. I believe the sign "-" that caused the trouble, please advise.

Validation errors:
  1. Invalid domain(s) mentioned in manifest.yml:


This topic has been closed for comments

2 replies

Hello Keen,

To solve this, CORS configuration must be enabled for the specific bucket.

Reference: Steps to enable CORS can be found at this link

Check your ticket status -