sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPHttpClient in multi-geo

Open svermaak opened this issue 1 year ago • 0 comments

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

svermaak avatar Jun 27 '24 23:06 svermaak