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

Unable to pull resources from cesiumjs.org due to CORS #8050

Closed
ccopland94 opened this issue Aug 8, 2019 · 9 comments
Closed

Unable to pull resources from cesiumjs.org due to CORS #8050

ccopland94 opened this issue Aug 8, 2019 · 9 comments

Comments

@ccopland94
Copy link

Hi - it appears that CORS is no longer working with the Cesiumjs.org domain. It was working before, but now it is blocking requests to get resources due to CORS issues, and failing altogether.

Browser: Chrome, Firefox

Operating System: Windows, iOS

@ccopland94 ccopland94 changed the title CORS Unable to pull resources from cesiumjs.org due to CORS Aug 8, 2019
@OmarShehata
Copy link
Contributor

@ccopland94 are you embedding CesiumJS in your application like this?

<script src="https://cesiumjs.org/Cesium/Build/Cesium/Cesium.js"></script>

If so, try using an official release, like:

<script src="https://cesiumjs.org/releases/1.60/Build/Cesium/Cesium.js"></script>

Let me know if that works.

@ccopland94
Copy link
Author

ccopland94 commented Aug 9, 2019

Thanks for your response @OmarShehata .

I am already doing that, but with version 1.56. The issue isn't that the built cesium isn't loading into the frame, it's that it is failing to load resources cross origin. See the attached image:

image

@ccopland94
Copy link
Author

It appears to me that something changed on the hosting side in that they are no longer sending the Access-Control-Allow-Origin header anymore.

@hpinkos
Copy link
Contributor

hpinkos commented Aug 9, 2019

Thanks @ccopland94. @mramato is looking into this now and we'll have an update for you soon =)

@ccopland94
Copy link
Author

Thanks @hpinkos 👍

@mramato
Copy link
Contributor

mramato commented Aug 9, 2019

Thanks for reporting this @ccopland94, we accidentally got a little over-aggressive with some housecleaning/security updates. This should be fixed (but may take a few minutes to propagate globally). Please try it out on your end and let us know.

@ccopland94
Copy link
Author

@mramato Thanks, that seems to have done the trick! Closing this issue out.

@Maarondesigns
Copy link

Our site is suddenly being blocked by CORS. Changing to a different build has no effect. This completely breaks our app (assuming the approximate terrain file). Can this please be fixed asap? This is breaking a production site for my company and if we can't rely on this framework we will have to move to a different product. I have a presentation of the app I've been building to the owner at the end of this week!! Please, thank you....
cesiumscors

@hpinkos
Copy link
Contributor

hpinkos commented Oct 15, 2019

Hello @Maarondesigns, we recently moved the releases from cesiumjs.org to cesium.com.

If you change your URL to https://cesium.com/downloads/cesiumjs/releases/1.62/... it should work, but please let me know if you are still experiencing problems as we just rolled this change out this morning. Thanks!

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

5 participants