Article: Getting CORS error when Embedded code is added in the host environment for Search Assist web-client

Facing CORS error when Embedded code is added in the host environment for Search Assist web-client ?

error#
Error in Console: abcd**.com** Access to XMLHttpRequest at 'https://abcd.com/searchassistapi/websdk/abc123[‘](https://satest.aurelia.t-systems.com/searchassistapi/websdk/79b388ef821742d091a9b9566c5a241e0ba1ec9c20784615983a5c204b506a4ast83’) from origin ‘https:/abcd.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

#Solution#
In Koreconfig.json add only the domain name.

Example:

[

"https://abcd.com,

"https://abcd.com",

"abcd",

"abcd",

]