https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
q

quiet-monkey-7986

04/11/2023, 8:38 PM
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

fresh-football-47124

04/11/2023, 8:42 PM
Do you have the ability to adjust the Allow-origin headers on Hurb?
q

quiet-monkey-7986

04/11/2023, 9:21 PM
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

fresh-football-47124

04/11/2023, 10:15 PM
@future-teacher-7046 do you know if it is ourside?
f

future-teacher-7046

04/11/2023, 11:13 PM
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

quiet-monkey-7986

04/12/2023, 12:43 PM
@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

fresh-football-47124

04/12/2023, 12:43 PM
👍
15 Views