Skip to content

Should an opaque origin be able to create a Worker? #1322

Open
@mkruisselbrink

Description

@mkruisselbrink

With classic script workers it wasn't possible for a document in a unique origin (such as a sandboxed iframe) to create a Worker, as it's impossible for the origin of the script URL to be the same as the (unique) origin of the document. With module workers there currently is no such same-origin requirement though, so as spec-ed it should be possible for a unique origin to create a worker (assuming the worker is served with a Access-Control-Allow-Origin: * or Access-Control-Allow-Origin: null header). Is this intentional? Or should some of the same origin checks that got removed from the Worker constructor be put back?
@annevk @domenic

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions