Skip to content

recorder.js lacks CORS headers unlike script.js #4426

Closed

Description

@SailReal

Describe the Bug

next.config.ts adds Access-Control-Allow-Origin: * only for TRACKER_SCRIPT = '/script.js' (and /api/*). /recorder.js has no headers entry, so embedding it with crossorigin="anonymous" + integrity fails with a CORS error, while the same attributes work fine on script.js.

curl -sI https://analytics.example.com/script.js | grep -i "access-control-allow-origin: *"
access-control-allow-origin: *

curl -sI https://analytics.example.com/recorder.js | grep -i "access-control-allow-origin: *"

Database

PostgreSQL

Relevant log output

Which Umami version are you using?

3.2.0

How are you deploying your application?

Docker

Which browser are you using?

Brave, Firefox

Activity

  1. added a commit that references this issue on Aug 4, 2026
    9e00347
  2. added a commit that references this issue on Oct 7, 2026
    577f055
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