다음을 통해 공유


URL 제외

URL을 가로채지 않도록 제외하려면 앞에 !(느낌표)를 추가합니다.

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rc.schema.json",
  "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이 일치하기 전에 먼저 정의해야 합니다.