calibreapp/react-live-chat-loader

[Bug] CORS ISSUE with messenger

raymonnguyen opened this issue · 1 comments

Describe the bug

I'm having CORS issue when call messenger-sdk, do you have any ideas how I can whitelist it? I also fill out the domain in the developer dashboard but the issue still there. Really appreciate your help

How To Reproduce

No response

Screenshots

Screen Shot 2022-12-19 at 17 17 59

Screen Shot 2022-12-19 at 17 18 10

Screen Shot 2022-12-19 at 17 19 27

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Hi @raymonnguyen — CORS errors generally indicate an issue with domain configuration in Facebook, which requires a domain to be safe-listed, publicly accessible (i.e. no localhost) and served over HTTPS. ngrok can be helpful in achieving this locally.

Closing this one as it doesn’t appear to be a bug in the package (you can see the Messenger provider loading without issue on our demo website) but rather an implementation issue to be solved on Facebook’s side.