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

Use files instead of data: resources to avoid breaking CSP #6927

Merged
merged 6 commits into from Feb 23, 2024

Conversation

leofeyer
Copy link
Member

@leofeyer leofeyer commented Feb 22, 2024

Because Swiper uses src: url('data:application/font-woff…') in their style sheet.

I have repackaged Swiper in contao-components/swiper@a9f07d8.

@leofeyer leofeyer added the bug label Feb 22, 2024
@leofeyer leofeyer added this to the 5.3 milestone Feb 22, 2024
@leofeyer leofeyer self-assigned this Feb 22, 2024
fritzmg
fritzmg previously approved these changes Feb 22, 2024
@leofeyer leofeyer changed the title Add the missing csp_source() in the swiper.html.twig template Use files instead of data: resources to avoid breaking CSP Feb 23, 2024
Toflar
Toflar previously approved these changes Feb 23, 2024
Copy link
Member

@Toflar Toflar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@leofeyer leofeyer merged commit e44b87f into contao:5.3 Feb 23, 2024
17 checks passed
@leofeyer leofeyer deleted the fix/swiper-csp branch February 23, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants