Skip to content
Advertisement

$.ajax gets a 419 only in safari, works fine with chrome and FF

I have a ajax call on a laravel blade page. This ajax call works find on Chrome and FF but fails with a 419 every time when using safari. I have tried all the solutions mentioned in different threads on stack.

my latest iteration of the code looks like the following code below. (it is posting after getting a message from an iframe)

JavaScript

I even tried adding

JavaScript

I am at a loss at what to try next. thanks for any help at all

from the dev tools

JavaScript

Advertisement

Answer

As you already guessed, it’s a Safari bug.

https://laracasts.com/discuss/channels/laravel/session-expired-error-419-on-safari-1212-after-updating-to-laravel-7

Related to the same_site setting on the sessions.php

As far as I could find, the only solution is to relax the settings.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement