Skip to content

Fetching module fails due to CSP #1

Description

@jdxgfty

Hi,

I ran into a CSP issue when trying to browse the source code for the heckel.io/ntfy/v2 package.

When fetching from proxy.golang.org, the proxy responds with a 302 redirect to storage.googleapis.com. Since the CSP's connect-src directive only includes proxy.golang.org, the browser blocks the redirected request.

$ curl -i https://proxy.golang.org/heckel.io/ntfy/v2/@v/v2.17.0.zip

HTTP/1.1 302 Found
[...]
Location: https://storage.googleapis.com/proxy-golang-org-prod/52b595c9a5adea8e-heckel.io:ntfy:v2-v2.17.0.zip?[query_params]
[...]

Metadata

Metadata

Assignees

No one assigned

    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