☝️Small business or a startup? See if you qualify for our special offer.
+

Help with deployment

Answered
Gokuldas Chandgadkar asked 2 days ago

Hi We were testing  it by deploying some sample reports in IIS we created a simple CBSReports website with simple html index and js file. We are pointing to report using report.json file.

But when now we test it from our laptop we get  below error 

Unable to connect to the custom data source API endpoint 'http://10.104.12.23:9500/fields'.

Check the following points to resolve the issue:
- make sure that the URL is correct
- enable CORS
- check the browser console for any errors

Please help as  our  main website is http://10.104.12.93:8085

How to we enable CORS

I tried to setup reverse proxy in IIS but then still its not working

Regards,

Gokul

1 answer

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster 18 hours ago

Hello, Gokul!

Thank you for reaching out to us.

From our experience, the issue can indeed be resolved by configuring the Cross-Origin Resource Sharing(CORS), as the server usually rejects cross-origin requests unless configured otherwise. Please note that the CORS should be configured on the server(your IIS server in this case). Please check out our troubleshooting guide for more guidance: https://www.flexmonster.com/doc/typical-errors/#custom-api-endpoint-error.

Also, we have noticed that the provided URLs have one different digit: 10.104.12.93:8085 and 10.104.12.23:9500, so we suggest double-checking that the URLs are correct.

Hope it helps.

Kind regards,
Solomiia

Please login or Register to Submit Answer