Skip to content

CSP Safe Mode #2155

@azizabbas

Description

@azizabbas

Flux version

v2

Livewire version

v3

Tailwind version

v4

Browser and Operating System

Chrome on MacOS

What is the problem?

I am creating this issue as followup of feature request #2119

Flux UI generates inline Alpine.js with let statements (like let input = $el.closest(...)), which CSP-safe mode doesn't support.

This means we cannot have CSP Safe mode enabled in our livewire config if we are to use Flux UI at full, like using clear button to clear input and related.

This must be considered in future releases of Flux and maybe there is a workaround to fix this.

Currently, we have to use AlpineJS with Javascript to achieve all that if we want to have CSP Safe mode enabled.

Code snippets to replicate the problem

Screenshots/ screen recordings of the problem

How do you expect it to work?

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions