-
-
Notifications
You must be signed in to change notification settings - Fork 17
Remove unpkg.com dependency and serve manifold assets locally #396
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ const isProduction = process.env.NODE_ENV === 'production'; | |
| const BASE_URL = process.env.VITE_BASE_URL || '/'; | ||
|
|
||
| // `frame-ancestors` is only enforced from HTTP headers (ignored in CSP meta tags). | ||
| const CSP_META_POLICY = "default-src 'self'; base-uri 'self'; form-action 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' https://www.googletagmanager.com https://unpkg.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://www.google-analytics.com https://www.googletagmanager.com; font-src 'self' data:; connect-src 'self' https: https://www.googletagmanager.com https://www.google-analytics.com https://region1.google-analytics.com https://stats.g.doubleclick.net https://unpkg.com; media-src 'self' data: blob:; worker-src 'self' blob:; frame-src 'self'; manifest-src 'self'"; | ||
| const CSP_META_POLICY = "default-src 'self'; base-uri 'self'; form-action 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https://www.google-analytics.com https://www.googletagmanager.com; font-src 'self' data:; connect-src 'self' https: https://www.googletagmanager.com https://www.google-analytics.com https://region1.google-analytics.com https://stats.g.doubleclick.net; media-src 'self' data: blob:; worker-src 'self' blob:; frame-src 'self'; manifest-src 'self'"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The CSP policy contains If the intent is to allow arbitrary HTTPS connections (e.g., for user-provided URLs), this is acceptable but should be documented. Otherwise, consider removing 🤖 Prompt for AI Agents |
||
| const CSP_HEADER_POLICY = `${CSP_META_POLICY}; frame-ancestors 'self'`; | ||
|
|
||
| export default { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation does not match actual CSP implementation.
The documented
connect-srcdirective differs from what's defined invite.config.mjs(line 13) andindex.html(line 7). The implementation includes a broadhttps:scheme allowance that is not reflected in this documentation:'self' https://www.googletagmanager.com https://www.google-analytics.com ...'self' https: https://www.googletagmanager.com ...Please either update the documentation to reflect the actual policy, or remove the
https:from the implementation files to match this more restrictive documented policy.🤖 Prompt for AI Agents