•   almost 5 years ago

Unable to customize the prebuilt screen with searchNearMe or make any query using JavaScript SDK due to because a request is blocked by CORS policy

Hi, I am following instructions below to customize the prebuilt screens to land directly on the "Search Near Me" screen
https://docs.healthcarelocator.com/QStartGuide/Customize_the_prebuilt_screens_of_the_SDKs.htm?rhhlterm=configPatch&rhsyns=%20#Update_configuration_of_the_SDK_instance

However, I always getting CORs issue as shown below:

Access to XMLHttpRequest at 'https://api.healthcarelocator.com/api/graphql/query' from origin 'http://localhost:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

+++++++++++++++

I also tried downloading the latest JavaScript SDK package in
https://github.com/hcl-sdk/HealthCareLocatorWebSDK

and run a web example using 'npm run start-example-web' (using my apiKey) and encountered the same error when clicking on the 'Find a dentist near me' in the menu

I also tried running an example in the 'hcl-sdk-api' package (Service calls to get data without implementing UI) and encountered the same issue there as well.
********************

I am completely blocked at this point. Can someone please chime in or shed some light on this issue?

Thanks you so much!

Comments are closed.