I’m trying to test an HTML5 build that uses liveupdate. I get the following error in console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.mydomain.com/liveupdate_folder/defold.resourcepack.zip. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
Firefox documentation is here but it’s not enough to get me over the line… Reason: CORS header 'Access-Control-Allow-Origin' missing - HTTP | MDN
I believe my server is Apache and I’ve tried adding an .htaccess file but I am unable to resolve the error. I’ve tried various permutations of .htaccess but they just yield another error:
(Reason: CORS header 'Access-Control-Allow-Origin' does not match
What should I put in .htaccess, and where do I put .htaccess? Thanks!