sp-dev-docs
sp-dev-docs copied to clipboard
SPHttpClient in multi-geo
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [X] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- browser version
- SPFx version
- Node.js version
- etc
Describe the bug / error
Using SPHttpClient in a multi-geo setting fails to get successfully retrieve"/_api/web/AllProperties" from site in TenantB on a site in Tenant A.
Steps to reproduce
This line in SPFx, running in webpart on site in TenantA
const response: SPHttpClientResponse = await spHttpClient.get(${siteUrl}/_api/web/AllProperties, SPHttpClient.configurations.v1);
Executed with site url that is a site in TenantB
Expected behavior
Properties successfully retrieved irrespective on cross tenant execution