Skip to content

Commit 9c3dbd6

Browse files
Update multi-URL spec to watch full URLs (#81)
1 parent c35de02 commit 9c3dbd6

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

specs/multi-url-support.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Some applications are using an hybrid approach when it comes to consuming APIs.
66

77
| Version | Date | Comments | Author |
88
| ------- | -------- | ----- | --- |
9+
| 1.1 | 2022-12-16 | change hosts to full URLs | @waldekmastykarz |
910
| 1.0 | 2022-12-09 | Initial specifications | @sebastienlevert |
1011

11-
1212
## Configuration file
1313

1414
Reusing the `appSettings.json` configuration file should be possible for developers who want to support scenarios outside of Microsoft Graph. This file should have default values for all supported Microsoft Graph clouds and SharePoint URLs.
@@ -17,18 +17,26 @@ This configuration can also be extended by "any" URLs to support 1P endpoints, v
1717

1818
```json
1919
{
20-
"hostsToWatch": [
21-
"graph.microsoft.com",
22-
"graph.microsoft.us",
23-
"dod-graph.microsoft.us",
24-
"microsoftgraph.chinacloudapi.cn",
25-
"*.sharepoint.*",
26-
"*.sharepoint-df.*"
27-
"customService.azurewebsites.net"
20+
"urlsToWatch": [
21+
"https://graph.microsoft.com/v1.0/*",
22+
"https://graph.microsoft.com/beta/*",
23+
"https://graph.microsoft.us/v1.0/*",
24+
"https://graph.microsoft.us/beta/*",
25+
"https://dod-graph.microsoft.us/v1.0/*",
26+
"https://dod-graph.microsoft.us/beta/*",
27+
"https://microsoftgraph.chinacloudapi.cn/v1.0/*",
28+
"https://microsoftgraph.chinacloudapi.cn/beta/*",
29+
"https://*.sharepoint.*/*_api/*",
30+
"https://*.sharepoint.*/*_vti_bin/*",
31+
"https://*.sharepoint-df.*/*_api/*",
32+
"https://*.sharepoint-df.*/*_vti_bin/*",
33+
"https://customService.azurewebsites.net/*"
2834
]
2935
}
3036
```
3137

38+
We want to watch full URLs instead of just hosts, so that we can intercept only API calls. This will let users have more control over the URLs they want to watch. Additionally, it will make it possible to use the Proxy when building solutions connected to Microsoft Graph using SPFx, which require that users are able to navigate to web pages in the browser, which are hosted on the same domain as the API calls.
39+
3240
## Remove the `--cloud` option on the Proxy
3341

3442
This new capability renders the `--cloud` option obsolete on the Proxy. We should remove the capability and its associated documentation.
@@ -61,4 +69,4 @@ Responses can be mocked and should be updated to include the absolute URL for th
6169
},
6270
]
6371
}
64-
```
72+
```

0 commit comments

Comments
 (0)