Skip to content

Observable CORS for AWS Galaxy #1

Description

@HadleyKing

On galaxy.hyphy.org, we service requests from https://${USERNAME}.static.observableusercontent.com/ (where ${USERNAME} is the user who owns the ObservableHQ notebook) in our NGINX logs. I think the corresponding edit for Apache would be something like:

Header set Access-Control-Allow-Origin "https://*.static.observableusercontent.com/"
Header set Access-Control-Allow-Methods "GET"
Header set Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"

in /etc/httpd/conf.d/galaxy.conf.

Normally I’d just make this edit myself, check the configs (seems like sudo httpd -t for Apache) and restart the httpd. But since this is a (minor) security concern and it’s your system, I figured I’d run this by you and Dacian first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions