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

IE fix #253

Merged
merged 3 commits into from
Oct 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
CORS headers for WorkerHost
  • Loading branch information
texodus committed Oct 2, 2018
commit 22e21fb0c5b62257f1a0a8243c04b153b1c4edb1
4 changes: 4 additions & 0 deletions packages/perspective/src/js/perspective.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ function read_promise(filePath) {

function create_http_server(assets, host_psp) {
return async function(request, response) {
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Request-Method", "*");
response.setHeader("Access-Control-Allow-Methods", "OPTIONS,GET");
response.setHeader("Access-Control-Allow-Headers", "*");
let url = request.url;
if (url === "/") {
url = "/index.html";
Expand Down