Skip to content

SRI page has no hash for custom domains #72

Closed

Description

@simpleanalytics-agent

What

The SRI page tells custom-domain users to load https://CUSTOM.DOMAIN/vN/app.js and generate the integrity hash themselves with a third-party site. The hash on the page only works for scripts.simpleanalyticscdn.com, because the custom-domain script contains the custom domain.

Customers also try the CDN path (/sri/vN.js) on their custom domain, which served latest.js until simpleanalytics/infrastructure#314 and broke their hash on the next release (simpleanalytics/infrastructure#312).

Why

Getting the custom-domain hash right takes manual steps and an outside tool, and a wrong URL breaks tracking silently on the next release.

Notes

Script responses on custom domains send Access-Control-Allow-Origin: *.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions