Hey, <@U01T6HCHD0A> or anyone else, I hope this me...
# ask-questions
q
Hey, @fresh-football-47124 or anyone else, I hope this message finds you well. I'm currently facing an issue with CORS policy while using your visual editor on my website (https://www.hurb.com). Here's the error message I'm encountering:
Copy code
Access to fetch at '<https://cdn.growthbook.io/api/v1/visual-changesets/vcs_19g61mlgcpfhuq?includeExperiment=1>' from origin '<https://www.hurb.com>' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Could you please assist me in resolving this issue? I've checked my configurations on the GrowthBook dashboard, but I'm still unable to get the visual editor to work properly due to this CORS issue. Any guidance or support would be greatly appreciated. Thanks in advance!
f
Do you have the ability to adjust the Allow-origin headers on Hurb?
q
Is it a problem on our side? I thought it was a block from GrowthBook side due to "Response to preflight request doesn't pass access control check". We are trying to use it with Visual Editor, all request made on client side. I've access to it, by the way
The preflight error
f
@future-teacher-7046 do you know if it is ourside?
f
Oh, I think I know what it is. You have to enter API.growthbook.io in the chrome extension settings, not CDN
We can update the extension so it works with either one.
q
@future-teacher-7046 it was that problem, I saw ApiHost and thought it was the same as the SDK apiHost. Thank you, guys @fresh-football-47124 Thank you for the support
f
👍