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

Provide documentation on requirements for deploying webnode script safely #155

Open
Malvoz opened this issue Jul 19, 2018 · 0 comments
Open

Comments

@Malvoz
Copy link

Malvoz commented Jul 19, 2018

Developers may choose to use Content Security Policy (CSP), Feature Policy (FP) and
Subresource Integrity (SRI) to control what their apps may or may not load cross-origin.

For example, an app can restrict scripts to their own origin by setting:
Content-Security-Policy: script-src 'self';

In the example above, webnode.js would not be allowed to run.

However to allow the webnode script to run, authors need to include the resource origin for webnode.js like so: Content-Security-Policy: script-src 'self' https://oyster.ws;.

Providing documentation on this could help applications implement and run webnode within a safer context.

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

1 participant