Skip to content

The use of Base64 by swiper-icon violates the CSP security policy #4918

@tomseanmy

Description

@tomseanmy

Check that this is really a bug

  • I confirm

Reproduction link

Internal network

Bug description

hey guys. today I encountered a very painful problem, and swiper will not be available when the website opens CSP. because swiper-icon will introduce a section of base64, but introducing base64 is prohibited in CSP. is there a suitable solution for using swiperjs for CSP? thank you very much

image

image

Expected Behavior

No response

Actual Behavior

No response

Swiper version

6.8.2

Platform/Target and Browser Versions

Win10. Chrome93

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions