Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to spline URL is blocked by CORS #44

Closed
bhatvikrant opened this issue Jun 5, 2022 · 9 comments
Closed

Access to spline URL is blocked by CORS #44

bhatvikrant opened this issue Jun 5, 2022 · 9 comments

Comments

@bhatvikrant
Copy link

bhatvikrant commented Jun 5, 2022

Screenshot 2022-06-06 at 2 12 29 AM

visit the website at https://useforest.vercel.app/ https://useforest-qpmt8vhgx-bhatvikrant.vercel.app/

@marcofugaro
Copy link
Contributor

marcofugaro commented Jun 6, 2022

Could you try again? The demo over at https://useforest.vercel.app/ doesn't error for me now.

@bhatvikrant
Copy link
Author

bhatvikrant commented Jun 6, 2022

Hey yes, I actually embedded the iframe for now on https://useforest.vercel.app/.
Test on this preview URL -> https://useforest-qpmt8vhgx-bhatvikrant.vercel.app/

@marcofugaro
Copy link
Contributor

marcofugaro commented Jun 6, 2022

Ok. I see the scene correctly, you sure it's not your network or a browser extension? Maybe try on firefox?

image

@bhatvikrant
Copy link
Author

bhatvikrant commented Jun 6, 2022

This is how it looks for me. I don't think its my network
Tried it on other browsers as well, same issue
Screenshot 2022-06-06 at 3 24 21 PM

@marcofugaro
Copy link
Contributor

marcofugaro commented Jun 6, 2022

Could you copy your request as cURL and paste it here? I can't reproduce.

image

@bhatvikrant
Copy link
Author

Sure, here you go

curl 'https://prod.spline.design/HjVNv3p4g5YP0hUz/scene.splinecode' \
  -H 'authority: prod.spline.design' \
  -H 'accept: */*' \
  -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
  -H 'origin: https://useforest-qpmt8vhgx-bhatvikrant.vercel.app' \
  -H 'referer: https://useforest-qpmt8vhgx-bhatvikrant.vercel.app/' \
  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="101", "Google Chrome";v="101"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: cross-site' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36' \
  --compressed

@bhatvikrant
Copy link
Author

Hey @marcofugaro ?

@superguigui
Copy link
Contributor

superguigui commented Jun 7, 2022

I also cannot reproduce this, @bhatvikrant can you try from a different network to see if this is a configuration on your local internet connexion? Or from another device maybe (it can be related to antivirus)?

@marcofugaro
Copy link
Contributor

marcofugaro commented Jun 14, 2022

Closing as we can't reproduce. It looks like a user error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants