簡體   English   中英

使用Chrome開發工具查找XMLHttpRequest的來源

[英]Find the source of an XMLHttpRequest using Chrome dev tools

我正在嘗試調試一個不是我編寫的Web應用程序。 發生了一個失敗的XMLHttpRequest:

XMLHttpRequest cannot load ... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...' is therefore not allowed access. 

有沒有辦法,最好使用Chrome開發者工具,找到這個電話的來源?

事實證明 - 是的,有。 我一直忽略的那個“XHR斷點”選項:

在此輸入圖像描述

它完美地運作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM