我有一個完美的PHP頁面,裏面有一個iframe。突然它停滯在鉻工作與此錯誤:以前工作的iframe中的「Chrome檢測到不尋常的代碼」錯誤
Chrome detected unusual code on this page and blocked it to protect your personal information...
任何想法如何解決它?
我有一個完美的PHP頁面,裏面有一個iframe。突然它停滯在鉻工作與此錯誤:以前工作的iframe中的「Chrome檢測到不尋常的代碼」錯誤
Chrome detected unusual code on this page and blocked it to protect your personal information...
任何想法如何解決它?
環顧四周發現Chrome將X-XSS-Protection的默認實現更改爲「X-XSS-Protection:1;模式=塊'(reference)
因此,最快的解決方案(並且涉及代碼變化最少)是通過從服務器發送值0來禁用X-XSS-Protection。
這裏是如何從PHP
header("X-XSS-Protection: 0");
做了鍍鉻的改變了它的X-XSS-保護爲「X-XSS-保護的默認實現:1;模式=塊」,主要這個問題在Chrome中發現了60版和車窗PC見T這個問題相關的參考下面的鏈接
https://bugs.chromium.org/p/chromium/issues/detail?id=702542
https://bugs.chromium.org/p/chromium/issues/detail?id=706038
https://productforums.google.com/forum/#!topic/chrome/4MUJd75N4Jw
不明白downvotes ,這個問題在海豚身上很模糊,因爲它不依賴於頁面代碼,而是依賴於Chrome上的更改。請解釋一下,以便我可以改進它,如果你覺得缺少一些東西! –