Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
Bir bakışta
Hedef: Dev Proxy'nin belirli URL'leri engellemesini engelleme
Süre: 3 dakika
Önkoşullar:Geliştirme Ara Sunucusunu Ayarlama
Url'nin kesilmesini engellemek için url'yi bir ! (ünlem işareti) ekleyin:
Dosya: devproxyrc.json
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
"plugins": [
{
"name": "GenericRandomErrorPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
}
],
"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/*"
]
}
Yukarıdaki örnekte, ara sunucu /_api/web/GetClientSideComponentsadresine yapılan istekleri yoksayar.
URL'leri dışlarken, proxy'nin eşleşen URL'leri yapılandırmada tanımlandığı sırada aradığını unutmayın.
Belirli URL'leri dışlamak istiyorsanız, daha fazla genel URL eşleşmesi olmadan önce bunları tanımlamanız gerekir.
Ayrıca bakınız
- Geliştirme Proxy'sini yapılandırma - URL desenleri
- Sözlük - Geliştirme Ara Sunucusu terminolojisi