laravel5.2版本,在iframe调用下,返回错误的跳转链接无法获取


我打印Request $request;
在iframe下,不是新建打开
+headers: HeaderBag {#47 ▼
#headers: array:13 [▼
"host" => array:1 [▶]
"connection" => array:1 [▶]
"content-length" => array:1 [▶]
"cache-control" => array:1 [▶]
"origin" => array:1 [▶]
"upgrade-insecure-requests" => array:1 [▶]
"user-agent" => array:1 [▶]
"content-type" => array:1 [▶]
"accept" => array:1 [▶]
"referer" => array:1 [▼
0 => "http://www.blog.com/admin",就是这里,只能获取到我顶端的URl,这就导致了跳转不成功
]
"accept-encoding" => array:1 [▶]
"accept-language" => array:1 [▶]
"cookie" => array:1 [▶]
]
#cacheControl: array:1 [▶]
}

我在新建的时候,是正常的,获取到如下
Request {#41 ▼
#json: null
#convertedFiles: null
#userResolver: Closure {#344 ▶}
#routeResolver: Closure {#343 ▶}
+attributes: ParameterBag {#43 ▶}
+request: ParameterBag {#42 ▶}
+query: ParameterBag {#49 ▶}
+server: ServerBag {#46 ▶}
+files: FileBag {#45 ▶}
+cookies: ParameterBag {#44 ▶}
+headers: HeaderBag {#47 ▼
#headers: array:13 [▼
"host" => array:1 [▶]
"connection" => array:1 [▶]
"content-length" => array:1 [▶]
"cache-control" => array:1 [▶]
"origin" => array:1 [▶]
"upgrade-insecure-requests" => array:1 [▶]
"user-agent" => array:1 [▶]
"content-type" => array:1 [▶]
"accept" => array:1 [▶]
"referer" => array:1 [▼
0 => "http://www.blog.com/admin/website/create",正常的,这个BUG怎么解决啊,有点坑了,用了这个iframe
]
"accept-encoding" => array:1 [▶]
"accept-language" => array:1 [▶]
"cookie" => array:1 [▶]
]
#cacheControl: array:1 [▶]
}
#cont
BUG动图演示地址,大神们一下子就明白了:http://game.kong-qi.com/bug_text.gif


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: 多FORM提交

>> 下一篇: 为什么我取到的cookie值总是为null?