Answer the question
In order to leave comments, you need to log in
Cookies not accepted in iframe Safari, laravel validation can do without them?
rewrote the application from self-written to l5, which should be embedded via iframe on user pages, before I did not use cookies, but only native php session. Lara, as far as I understand, is all tied to cookies, and without them it is impossible even to get form validation data.
to make it clear what the point is:
stackoverflow.com/questions/9930671/safari-3rd-par...
https://geektimes.ru/post/112077/
Half of the methods no longer work, the other half with a bunch of redirects looks dumb.
I tried different session providers, but they all pass cookies, except for array, which seems to fit, but it does not know how to return redirect()->back()->with('msg', 'test'); As a result, validation is quite difficult to pass.
Maybe there is some custom provider that doesn't use cookies, like html5 sessionstorage or even native php session? or is there another way?
Answer the question
In order to leave comments, you need to log in
Firstly, the session will not work without cookies, since the default session identifier is transmitted in cookies.
You can set php to pass the id in the url, but this is not a very good way.
laravel has a separate middleware for web and api, use api, not web. There should be no problems in api mode, or it will already crash with a specific error. In api mode, the standard cookie and session mechanism is not used, you can attach some package with jwt tokens if you need authorization, it will be much better.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question