Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://ift.tt/1vUvm8a



The error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://ift.tt/1vUvm8a. This can be fixed by moving the resource to the same domain or enabling CORS.


My CORS setting in amazon s3 are:



<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://ift.tt/111A788">
<CORSRule>
<AllowedOrigin>http://localhost:3000</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>


Any ideas how it can be fixed please?


No comments:

Post a Comment