itpresidents / thesis-archive-2020

10 stars 1 forks source link

cors issue on itp.nyu.edu/thesis2020 #86

Closed noisyneuron closed 4 years ago

noisyneuron commented 4 years ago

Error message: Access to manifest at 'https://itpthesis2020.site/manifest.json' from origin 'https://itp.nyu.edu' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

oveddan commented 4 years ago

Spent a while debugging this. CORS was enabled, but I believe that the scripts it was pulling no longer existed once we pushed new code to netlify. We need to consider what happens when we push to master. maybe we dont push to master

oveddan commented 4 years ago

Same issue occurs now if I try to preview a deploy of a previous version. I need to tell netlify to keep old files around.

oveddan commented 4 years ago

https://community.netlify.com/t/keep-js-chunks-from-old-deploys/5991

oveddan commented 4 years ago

Ive turned off auto-publishing in netlify.