Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Fix CSP when using SPACEBIN_ANALYTICS environment variable #435

Closed
lukewhrit opened this issue Aug 9, 2024 · 0 comments
Closed

bug: Fix CSP when using SPACEBIN_ANALYTICS environment variable #435

lukewhrit opened this issue Aug 9, 2024 · 0 comments
Assignees
Labels
💥 bug Something isn't working
Milestone

Comments

@lukewhrit
Copy link
Owner

Describe the bug

When the SPACEBIN_ANALYTICS variable is populated, the browser will block loading of the URL due to Content Security Policy

To Reproduce

Steps to reproduce the behavior (What were you doing at the time?):

  1. Go to https://spacebin-staging.lwhr.xyz (which has the SPACEBIN_ANALYTICS variable setup)
  2. Open dev tools
  3. Notice Content-Security-Policy: The page’s settings blocked a script (script-src-elem) at https://plausible.lwhr.xyz/js/script.js from being executed because it violates the following directive: “script-src 'self' 'unsafe-inline'” in the console.

Expected behavior

It should load properly and be included into the Content Security Policy.

@lukewhrit lukewhrit added the 💥 bug Something isn't working label Aug 9, 2024
@lukewhrit lukewhrit added this to the v1.0.3 milestone Aug 9, 2024
@lukewhrit lukewhrit self-assigned this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥 bug Something isn't working
Projects
Status: 💎 Done
Development

No branches or pull requests

1 participant