React-360: http.... has been blocked by CORS policy: No 'Access-Control-Allow-Origin

Created on 22 Jan 2018  路  5Comments  路  Source: facebookarchive/react-360

I get issue when deloy to hosting:
Access to Image at http.... from origin 'http....' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http:....' is therefore not allowed access.

Most helpful comment

Any Example?
All documentation about react ajax calls ignore cors problem.

All 5 comments

I suggest you read about what CORS is here and then implement headers on the appropriate image requests. Your error has nothing to do with react-vr.
Alternatively, you can host the image on the same server the react-vr app is being served from.

two simple ways to fix:
a. find a jsonp lib
b. enable CORS on your server side configuration

thanks all

Any Example?
All documentation about react ajax calls ignore cors problem.

Was this page helpful?
0 / 5 - 0 ratings