Skip to content

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

Closed

Description

@jdm

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

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

Activity

  1. jdm commented on Jul 7, 2020

    @jdm
    MemberAuthor

    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.

  2. jdm commented on Jul 7, 2020

    @jdm
    MemberAuthor

    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.

  3. jdm commented on Jul 7, 2020

    @jdm
    MemberAuthor

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

  4. added 3 commits that reference this issue on Jul 8, 2020
    ba0545c
    8eb950e
    3b2f291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions