Skip to content

There are CSP errors in sidekiq web UI even if the rails csp is disabled #161

@tomwang57

Description

@tomwang57

Ruby version: 3.2.8
Rails version: 6.1.7
Sidekiq Enterprise version(s): 7.3.4

When i open the sidekiq web ui /sidekiq/failures, csp errors occurred:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-lXMzrJUh3HIxIG/WZMx3SQ=='". Either the 'unsafe-inline' keyword, a hash ('sha256-w9/6+fNkxBwDWqncpvlX63fE2I2cyGU8hwZM3MHAFpo='), or a nonce ('nonce-...') is required to enable inline execution.
Image

But the rails CSP is disabled in config/initializers/content_security_policy.rb(all configurations are commented). Is way anyway to fix it?

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