cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
721
Views
0
Helpful
2
Replies

CORS error while using Meetings Widget

ArpitChauhan
Level 1
Level 1

I am trying to build a meetings portal using webex meetings widget. I am facing the following error - 

Access to XMLHttpRequest at 'https://identity.webex.com/identity/scim/v1/Users/me?showAllTypes=true' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

My app is a CRA with Node(express) backend. Any help would be highly appreciated !

2 Replies 2

Jeff Marshall
Cisco Employee
Cisco Employee

This CORS error can happen if you're trying to access the identity service from a source that isn't direct. For example, it does not support being accessed from an iframe.

I am just trying to add the WebexMeetingsWidget as below into my code and run my own instance. The widget is internally making calls to identity service. 

<WebexMeetingsWidget
accessToken={token}
meetingDestination={destination}
className={`webex-meeting-widget-demo wxc-theme-${theme}`}
layout={layout}
fedramp={fedramp}
/>

Am I missing something ?