CROSS origin error | XM Community
Skip to main content

CROSS origin error

  • September 29, 2022
  • 1 reply
  • 285 views

Forum|alt.badge.img+8

Hi
I have a survey in an intercept that is a pop up in a chat bot, i need to be able to recognize when the customer took the full survey to stop the display of the button that triggers the survey. I was trying to do it by capturing the EndOfSurvey but i am getting a cross origin error.
anyone know how can i work with this?

1 reply

bgooldfed
Level 4 ●●●●
Forum|alt.badge.img+25
  • Level 4 ●●●●
  • September 29, 2022

Hi Erikahuer,
CORS errors occur on the browser end as a security. By default, browsers won't let websites access information you've obtained from other websites. There's plenty of articles out there with different approaches to addressing CORS but you'll likely have to do a bit of researching and experimenting to find the right approach.
Interecepts aren't really my strong suit - somebody out there might have an easier solution (JavaScript?).