Resolving CORS Origin Error

TLDR MuktadirAhamedShakib asked fayaz how to enable CORS origin access due to errors. sojan_official requested for the API endpoint, while none12121ewq cited the specific error message. No solution was given.

Powered by Struct AI
Jan 21, 2022 (24 months ago)
Photo of md5-d79a04c5dcf3f8919829e58d661f9aee
04:53 PM
fayaz How to enable access cros origin? Because it’s shows the cors origin error. It should be enabled from backhand. That means the heroku server. But how to enable it?
Jan 26, 2022 (23 months ago)
Photo of md5-788237a2af5ff191b07ee9f215706ead
11:34 PM
Could you provide the API end point which you are trying to access ?
Jan 27, 2022 (23 months ago)
Photo of none
01:17 PM
Here is the error I get : index.html:1 Access to XMLHttpRequest at 'https://app.chatwoot.com/api/v1/accounts/41482/contacts/search?q=+4184555310' from origin 'https://cdpn.io' 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.