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

Fix issue with CSP and icon redirects #2624

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

BlackDex
Copy link
Collaborator

When using anything else but the internal icon service it would
trigger an CSP block because the redirects were not allowed.

This PR fixes #2623 by dynamically adding the needed CSP strings.
This should also work with custom services.

For Google i needed to add an extra check because that does a redirect
it self to there gstatic.com domain.

When using anything else but the `internal` icon service it would
trigger an CSP block because the redirects were not allowed.

This PR fixes dani-garcia#2623 by dynamically adding the needed CSP strings.
This should also work with custom services.

For Google i needed to add an extra check because that does a redirect
it self to there gstatic.com domain.
@dani-garcia dani-garcia merged commit f1a6766 into dani-garcia:main Jul 17, 2022
@BlackDex BlackDex deleted the fix-2623-csp-icon-redirect branch July 17, 2022 22:46
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.

Custom icon server is not in "content-security-policy".
3 participants