2016-04-18 11 views
0
window.history.pushState({ 
    id: cat_id 
}, 'Viewing item #35', SITE_URL + '?' + cat_key + '/' + brand_key); 

view_carrier_now.js:33 Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'http:// www.dmvbuyback .com/?iPhone/iPhone-5c' cannot be created in a document with origin ' http://dmvbuyback.com ' and URL ' http://dmvbuyback.com/index.php '.キャッチされない例外SecurityErrorが「歴史」on「にpushState」を実行に失敗しました:URL

と履歴状態オブジェクトは、何も変更が、管理パネルの一部の価格は現在、このエラーを与えていなかった仕事をしていました。

答えて

0

SITE_URLの値が現在のアドレスと一致していない可能性があります。 SITE_URLは「http://www.dmvbuyback.com/」、現在のアドレスは「http://dmvbuyback.com/」です。私はクロームデバッガで少しテストを行なったし、同様の結果だ:「WWW」

enter image description here

それはあなたが削除した場合のように見えるがSITE_URLからはおそらくうまくいくでしょう。

関連する問題