排除 URL
若要排除 URL 被截获,请在其 !
前面加上 (感叹号) :
{
"urlsToWatch": [
"https://graph.microsoft.com/v1.0/*",
"https://graph.microsoft.com/beta/*",
"https://graph.microsoft.us/v1.0/*",
"https://graph.microsoft.us/beta/*",
"https://dod-graph.microsoft.us/v1.0/*",
"https://dod-graph.microsoft.us/beta/*",
"https://microsoftgraph.chinacloudapi.cn/v1.0/*",
"https://microsoftgraph.chinacloudapi.cn/beta/*",
"!https://*.sharepoint.*/*_api/web/GetClientSideComponents",
"https://*.sharepoint.*/*_api/*",
"https://*.sharepoint.*/*_vti_bin/*",
"https://*.sharepoint-df.*/*_api/*",
"https://*.sharepoint-df.*/*_vti_bin/*"
]
}
在上面的示例中,代理忽略对 /_api/web/GetClientSideComponents
发出的任何请求。
排除 URL 时,请记住,代理会按照在配置中定义 URL 的顺序查找匹配的 URL。
如果要排除特定 URL,应先定义它们,然后再进行更多全局 URL 匹配。