Skip to content
This repository was archived by the owner on Aug 13, 2022. It is now read-only.
This repository was archived by the owner on Aug 13, 2022. It is now read-only.

Server Worker fails to register if the web server has "ForceType: text/html" #34

Closed
@rkhegde

Description

@rkhegde

Hi All,
Not sure what is the issue here. The SN registration is failing with the below message

"Registration failed with SecurityError: Failed to register a ServiceWorker for scope ('https://www.ctx.com/sw-test/') with script ('https://www.ctx.com/sw-test/sw.js'): The script has an unsupported MIME type ('text/html')."

Has anyone encountered the above message or has some clue on this?

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