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

Avoid inlining small assets to fix CSP #2006

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Avoid inlining small assets to fix CSP #2006

merged 2 commits into from
Apr 16, 2024

Conversation

frandiox
Copy link
Contributor

Vite inlines imported small assets (<4kb) by default. This creates issues with our favicon and the default CSP value, which does not allow img-src data:.

We could:

I'm opting for the last option here since it works for all the links in the app and doesn't introduce new unknown syntax for users.
Happy to change it though if something else makes more sense.

We could add this option to our CLI / plugins but I think it's better if the user has it in the config directly?

@frandiox frandiox requested a review from a team April 16, 2024 10:27
@frandiox frandiox merged commit bdef877 into main Apr 16, 2024
15 checks passed
@frandiox frandiox deleted the fd-fix-favicon-csp branch April 16, 2024 16:29
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