gpt4 book ai didi

php - 如何防止chrome向网页注入(inject)内容

转载 作者:行者123 更新时间:2023-12-03 01:02:58 24 4
gpt4 key购买 nike

最近我发现我的应用程序在 Google Chrome 中行为异常。

在带有表单的页面上,提交后,我的应用程序使用如下简单方法重新加载页面:

header('Location: ' . $url);

之后,页面渲染不正确,并且该内容被注入(inject)到 DOM

<div id="sbi_camera_button" class="sbi_search" style="left: 0px; top: 0px; position: absolute; width: 29px; height: 27px; border: none; margin: 0px; padding: 0px; z-index: 2147483647; display: none; "></div>

手动页面刷新后,一切都按预期进行。

我不确定是什么导致了这种行为,因为我在封闭的本地环境中工作,并且应用程序在 Firefox 中运行良好。

我的应用程序使用以下库(本地托管):

  • jQuery v1.7.1
  • jQuery UI 1.8.16
  • Bootstrap.js v 2.1.1

有人可以告诉我什么可能导致此问题吗?

最佳答案

难道是 Search By Image plugin Chrome 的?

我从that forum得到提示.

关于php - 如何防止chrome向网页注入(inject)内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12939449/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com