Skip to content

Conversation

@alexcolbeck1
Copy link
Contributor

@alexcolbeck1 alexcolbeck1 commented Nov 19, 2025

Description

In the console there were CSP errors such as:

Executing inline script violates the following Content Security Policy directive 'script-src 'self''. Either the 'unsafe-inline' keyword, a hash ('sha256-eGmUguHOQ+VD7QW20Cx2/mm+nZ5+iLoriiyS8I7V4pI='), or a nonce ('nonce-...') is required to enable inline execution. The action has been blocked.

So to fix this I'm moving inline javascript into an init.js file inside /assets/js

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@emmagifford emmagifford merged commit f6bf024 into main Nov 20, 2025
14 of 15 checks passed
@emmagifford emmagifford deleted the fixing-CSP-errors branch November 20, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants