-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat: enable CSP in all environments (local/preview/prod) #1334
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d06a54c
to
6e8e4de
Compare
Risk Level 3 - /home/runner/work/quivr/quivr/frontend/next.config.js
\"script-src\": [
\"'nonce-2726c7f26c'\",
\"https://va.vercel-scripts.com/\",
//...
],
\"style-src\": [
\"'nonce-2726c7f26c'\",
//...
],
🔒📄🚫 Powered by Code Review GPT |
5bebf5e
to
95db8ad
Compare
…ivrHQ#1334)" This reverts commit d0e363e.
🤖 I have created a release *beep* *boop* --- ## 0.0.89 (2023-10-09) ## What's Changed * feat: enable CSP in all environments (local/preview/prod) by @matthieujacq in #1334 * feat: enhance user page UI by @nguernse in #1319 * feat: update onboarding steps by @mamadoudicko in #1337 * feat: add onboarding_a column to onboarding table by @mamadoudicko in #1340 * fix(question): fixed with user_settings by @StanGirard in #1349 * FIX tables.sql - missing ; breaks SQL queries. by @stanrb in #1348 * feat: ⚙️🐞 configure debugger for the backend by @matthieujacq in #1345 * test: add chat e2e tests by @mamadoudicko in #1344 * feat: configure CSP for self-hosting and multiple ports in dev mode by @matthieujacq in #1364 ## New Contributors * @stanrb made their first contribution in #1348 **Full Changelog**: v0.0.88...v0.0.89 --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## 0.0.89 (2023-10-09) ## What's Changed * feat: enable CSP in all environments (local/preview/prod) by @matthieujacq in QuivrHQ/quivr#1334 * feat: enhance user page UI by @nguernse in QuivrHQ/quivr#1319 * feat: update onboarding steps by @mamadoudicko in QuivrHQ/quivr#1337 * feat: add onboarding_a column to onboarding table by @mamadoudicko in QuivrHQ/quivr#1340 * fix(question): fixed with user_settings by @StanGirard in QuivrHQ/quivr#1349 * FIX tables.sql - missing ; breaks SQL queries. by @stanrb in QuivrHQ/quivr#1348 * feat: ⚙️🐞 configure debugger for the backend by @matthieujacq in QuivrHQ/quivr#1345 * test: add chat e2e tests by @mamadoudicko in QuivrHQ/quivr#1344 * feat: configure CSP for self-hosting and multiple ports in dev mode by @matthieujacq in QuivrHQ/quivr#1364 ## New Contributors * @stanrb made their first contribution in QuivrHQ/quivr#1348 **Full Changelog**: QuivrHQ/quivr@v0.0.88...v0.0.89 --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Description
Enable CSP in all environments (local/preview/prod).
Relies on NEXT_PUBLIC_ENV env variable, which should be
'local'|'preview'|'prod'
Comparison of old and new CSP values (tested locally)
Before
CSP (for prod only)
After
Prod CSP (iso with before)
Preview CSP
Local CSP
🧪 External checks
Syntax checked with https://csp-evaluator.withgoogle.com/ (for the 3 environments).