Skip to content

Cannot load worker without breaking CORS #11

@zorgjbe

Description

@zorgjbe

Someone triggered the following error when posting a Discord link in chat:

Message: Uncaught SecurityError: Failed to construct 'Worker': Script at 'https://iceriny.github.io/XiaoSuActivity/dev/emojiWorkers.js' cannot be accessed from origin 'https://www.bondageprojects.elementfx.com'.
Source: https://iceriny.github.io/XiaoSuActivity/dev/XSActivity_dev.js?v=1742272416931:1:45061
SecurityError: Failed to construct 'Worker': Script at 'https://iceriny.github.io/XiaoSuActivity/dev/emojiWorkers.js' cannot be accessed from origin 'https://www.bondageprojects.elementfx.com'.
    at ChatroomModule.getEmojiWorker (https://iceriny.github.io/XiaoSuActivity/dev/XSActivity_dev.js?v=1742272416931:1:45061)
    at ChatroomModule.inputHandle (https://iceriny.github.io/XiaoSuActivity/dev/XSActivity_dev.js?v=1742272416931:1:45416)
    at HTMLTextAreaElement.<anonymous> (https://iceriny.github.io/XiaoSuActivity/dev/XSActivity_dev.js?v=1742272416931:1:32617)

Since the front-end servers have CORS setup, browsers will block that from happening, since that's a security risk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions