Php 在Safari上,Laravel重定向到Iframe
我有一个来自Php 在Safari上,Laravel重定向到Iframe,php,laravel,redirect,iframe,safari,Php,Laravel,Redirect,Iframe,Safari,我有一个来自https://site-a.com/embeb进入https://site-b.com/。 例如,Iframe的第一页是:https://site-a.com/module Iframe中有一个表单。当表单有错误时,我会使用输入和错误重定向回表单。 redirect()->back()->withErrors(['genericError'=>$e->getMessage()])->withInput() 在Safari上,这不起作用,Safari总是将用户重定向到源域:https
https://site-a.com/
embeb进入https://site-b.com/
。
例如,Iframe的第一页是:https://site-a.com/module
Iframe中有一个表单。当表单有错误时,我会使用输入和错误重定向回表单。
redirect()->back()->withErrors(['genericError'=>$e->getMessage()])->withInput()代码>
在Safari上,这不起作用,Safari总是将用户重定向到源域:https://site-a.com/
而不是https://site-a.com/module/{previous_url}
。在Safari上打印URL::previous()
时,它返回https://site-a.com/
。因此,当我们在Iframe中时,Safari上的URL::previous()
似乎不正确
在其他导航器上,它工作正常