google / google/neuroglancer

CORS error in Safari

Open
#426 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

Hi Jeremy,

@perlman reported to me (and I reproduced) that Safari encounters a CORS error due to stricter CORS conditions than other browsers when using Igneous/CloudVolume `http://localhost:1337` which emits the headers:
```
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: range
```

I tried adjusting the headers from CloudVolume, but I believe the error occurs before the request even reaches the server. Therefore, I think the error is blocked by the headers sent with the initial page load to https://neuroglancer-demo.appspot.com

If you have a moment, would you mind taking a look? I can examine Neuroglancer locally, but I'm not entirely sure how that particular site is configured.

Thanks!
Will

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.