gpt4 book ai didi

google-chrome - 谷歌浏览器 webRequest API 和 swf 文件

转载 作者:行者123 更新时间:2023-12-04 23:51:19 24 4
gpt4 key购买 nike

出于某种原因,我看不到使用 Google Chrome webRequest API 从 swf 文件(视频)中进行的 HTTP 调用。我有两个文件:background.html + manifest.json。我确实捕获了对 example.com 的正常请求(图像、AJAX、js),但没有捕获在同一页面上的 swf 文件中发出的 AJAX 请求。这可能吗?

background.html

<!DOCTYPE html>
<html>
<head>
<script>

function interceptRequest(request) {
alert(request.url);
}

chrome.webRequest.onSendHeaders.addListener(
interceptRequest,
{ urls: [ '*://*.example.com/*', ] }
);

</script>
</head><body></body>
</html>

list .json

{
"name": "My Extension",
"version": "0.1",
"background_page": "background.html",
"permissions" : [
"webRequest",
"*://*/*"
]
}

最佳答案

我能够通过在开发人员工具设置下选择“记录 XMLHttpRequests”来解决这个问题。希望这可以帮助别人。

关于google-chrome - 谷歌浏览器 webRequest API 和 swf 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9286530/

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