question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support CORS in Cesium's development server

See original GitHub issue

At least when it is running locally.

After

app.use(compression());

add

app.use(function(req, res, next) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
  next();
});

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bampakoacommented, Jan 24, 2017

@pjcozzi I would like to take on this, if is still relevant.

0reactions
bampakoacommented, Jan 24, 2017

@hpinkos You were right! I wasn’t testing it properly. Thanks for the info.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support CORS in Cesium's development server #2457 - GitHub
I have made some tests and it seems that requests from different domains are handled correctly from the express server, with the current ......
Read more >
Cross-Origin Resource Sharing policy (CORS) - CesiumJS
Hi, I am trying to show maps that are loaded from ArcGIS Server that we locally host, and I keep having trouble with...
Read more >
How can you use authentication with CORS imagery requests?
I am using an older version of Cesium with an imagery service that ... code but It really depends on the type of...
Read more >
Cross-Origin Resource Sharing - TerriaJS
Unfortunately, many servers still do not support CORS. If you control the server you're trying to access data on, enabling CORS is almost...
Read more >
CORS Error On CesiumJS Custom Visual - Microsoft Power BI ...
I'm trying to develop a CesiumJS custom visual, but I can't even get it to display the globe. Every time I start it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found