Skip to content

Disabling CSRF in Laravel 11 #50

Discussion options

You must be logged in to vote

I found the fix

In boostrap/app add

->withMiddleware(function (Middleware $middleware) {
        $middleware->validateCsrfTokens(except: [
			'support-bubble',
		]);
    })

Then update the env file from

QUEUE_CONNECTION=database

to

QUEUE_CONNECTION=sync

Tested working locally and prod

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@colinmackinlay
Comment options

@jonodonovan
Comment options

Answer selected by colinmackinlay
@colinmackinlay
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Bugs
Labels
None yet
2 participants