Skip to content

Fix IgnoreForWireExtender to not mess with non Livewire requests - #38

Merged
PhiloNL merged 1 commit into
wire-elements:mainfrom
dbpolito:fix_middleware_trait
Jan 20, 2025
Merged

PhiloNL merged 1 commit into
wire-elements:mainfrom
dbpolito:fix_middleware_trait

Conversation

@dbpolito

@dbpolito dbpolito commented Jan 20, 2025 •

Copy link
Copy Markdown
Contributor

Currently this trait is removing the default behavior of VerifyCsrfToken, as it only calls parent::handle if is livewire and has a component that is not embedable.

As far as i can tell we should just skip to default behavior on normal requests, right?

On my project, all other routes got affected by this trait.

@PhiloNL
PhiloNL merged commit d7ca599 into wire-elements:main Jan 20, 2025
@PhiloNL

PhiloNL commented Jan 20, 2025

Copy link
Copy Markdown
Contributor

Good catch, thanks!

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