SharePoint / SharePoint/sp-dev-docs
SPFx Copilot Component fails to load in Microsoft 365 Copilot due to REST calls returning 403 Forbidden
Open
@jansenbe is already working on this.
Since Aug 27, 2026.
area:spfx
area:spfx-copilot-apps
type:bug-suspected
- Dominant language
- PowerShell
- Stars
- 1.4k
- Forks
- 1.1k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 12
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
- SPFx version 1.24.0-beta.2
- Node.js version 22.14.0
Describe the bug / error
I am developing an SPFx Copilot Component and experiencing an issue where the component fails to load inside Microsoft 365 Copilot.
The UI displays the following message:
While investigating the browser network trace, I noticed that the following REST API calls are returning 403 Forbidden:
/_api/contextinfo
/_api/web/GetClientSideComponents
Steps to reproduce
- Deploy an SPFx Copilot Component to SharePoint Online.
- Open the agent/component inside Copilot.
- Observe that the component fails to load.
- Check browser Developer Tools → Network tab.
- Notice 403 responses from the REST endpoints listed above.
Expected behavior
The SPFx Copilot Component should load successfully within Microsoft 365 Copilot,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.