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

Some fetch requests are blocked on hubs.mozilla.org #27199

Closed
jdm opened this issue Jul 7, 2020 · 3 comments
Closed

Some fetch requests are blocked on hubs.mozilla.org #27199

jdm opened this issue Jul 7, 2020 · 3 comments
Labels

Comments

@jdm
Copy link
Member

@jdm jdm commented Jul 7, 2020

I've traced one of them down to being rejected by a CSP policy. I believe that

initiator: csp::Initiator::None,
is incorrect.

@jdm jdm added the A-network label Jul 7, 2020
@jdm jdm added this to To do in Hubs support Jul 7, 2020
@jdm
Copy link
Member Author

@jdm jdm commented Jul 7, 2020

The relevant CSP directive is:

connect-src https://hubs.link https://hub.link https://sentry.prod.mozaws.net https://assets-prod.reticulum.io https://uploads-prod.reticulum.io https://smoke-assets-prod.reticulum.io https://asset-bundles-prod.reticulum.io https://smoke-asset-bundles-prod.reticulum.io https://hubs-proxy.com wss://hubs.mozilla.com wss://smoke-hubs.mozilla.com https://www.mozilla.org https://hubs.local:3000 'self' https://cors-proxy-prod.reticulum.io:443 https://uploads-prod.reticulum.io   https://dpdb.webvr.rocks https://nearspark-prod.reticulum.io:443 https://*.reticulum.io:443 wss://*.reticulum.io:443 wss://*.reticulum.io:443 https://*.reticulum.io:443 wss://:443 https://:443 https://cdn.aframe.io https://www.youtube.com https://api.github.com data: blob:;

We're connecting to https://lucid-ardent.reticulum.io:443/meta, which should be valid.

@jdm
Copy link
Member Author

@jdm jdm commented Jul 7, 2020

This looks like a bug in the content-security-policy crate - the port comparison ends up comparing :443 from the directive and 443 from the URL and decides they don't match.

@jdm
Copy link
Member Author

@jdm jdm commented Jul 7, 2020

Submitted rust-ammonia/rust-content-security-policy#30 upstream to correct it.

@jdm jdm moved this from To do to In progress in Hubs support Jul 7, 2020
bors-servo added a commit that referenced this issue Jul 8, 2020
Update content-security-policy.

Fixes #27199.
bors-servo added a commit that referenced this issue Jul 9, 2020
Update content-security-policy.

Fixes #27199.
@bors-servo bors-servo closed this in 3b2f291 Jul 9, 2020
@atouchet atouchet moved this from In progress to Done in Hubs support Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Hubs support
  
Done
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.