Skip to Content
1
L K
Jul 05, 2019 at 05:39 PM

Cross-Origin Read Blocking (CORB) when using webchat

812 Views

I'm running my own implementation of a webchat using:

  • SAP Conversational AI webchat from https://github.com/SAPConversationalAI
  • Chrome browser Version 75.0.3770.100 (Official Build) (64-bit) on Mac OS
  • Development website served locally (http://localhost:3000)

I get the following errors on the browser console:

1) only once, when first loading the webchat client.

xhr.js:160 GET https://api.cai.tools.sap/connect/v1/webhook/b05ac6e3-d457-4150-955e-22ab3e988acb/conversations//poll?last_message_id 404

2) And the following, with each message sent by the user:

xhr.js:160 Cross-Origin Read Blocking (CORB) blocked cross-origin response https://api.cai.tools.sap/connect/v1/webhook/b05ac6e3-d457-4150-955e-22ab3e988acb/conversations/b8df4e20-c1e9-45fb-aaa4-f58ecc366cd5/poll?last_message_id=5c42f674-36dd-464e-bfec-f16678e74f1c with MIME type application/json.

The bot works well though. The only problem is that it doesn't recall what conversation it was in when the user refreshes the webpage on the browser.

Is it possible to whitelist "localhost"? Or any other setting that would prevent these errors?

Thanks!