microsoft / CopilotStudioSamples

MIT License
297 stars 239 forks source link

Issue: SharePoint SSO Component - CORS error #235

Closed samrutur closed 1 month ago

samrutur commented 1 month ago

When I launch the SharePoint component, I get the error message below. It looks there is a CORS issue. How to resolve this? I updated the origin to use the site url where this is used. I can access from demo web site with the code that is sent from the sign in button. image

adilei commented 1 month ago

This looks like a misconfiguration - you shouldn't be fetching information from there. Use the token endpoint: https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-connect-bot-to-custom-application#retrieve-your-copilot-studio-copilot-parameters

samrutur commented 1 month ago

Thank you! That was it.