Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
popsovy

CORS error referencing JavaScript files

Question

Using this method to upload a Javascript file

But then, when I try to reference it from the Squarespace site, I get a CORS error:

Access to script at 'https://static1.squarespace.com/static/57014b5b746fb963478e3d4f/t/5d7ba83d4e25b616833d896b/1568385085375/runtime-es2015.js' (redirected from 'https://brooke-meek.squarespace.com/s/runtime-es2015.js') from origin 'https://brooke-meek.squarespace.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Am I doing something wrong here?

Edited by popsovy
Initial Revision

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Hi. I'm having this exact same issue-- both with Javascript files and trying to refer to a json file.   Were you able to find a solution?

Share this post


Link to post
  • 0

I found a way to deal with it-- I put .js and .json files in a s3 bucket and turned out a CORS policy on the s3 bucket.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...