CORS

Website personalisation: JavaScript integration

For the JavaScript implementation, Ometria uses a mechanism called cross-origin resource sharing (CORS) to safely communicate with the onsite APIs.

CORS is like a safe-list of domains that grant access to the Ometria onsite resources.

Before you start using the Ometria onsite JavaScript APIs you'll need to log into Ometria and go to: Website personalisation > Store Fronts > [select your store front] > CORS

Add any domains that will need cross origin access to the API.

Adding a domain

Only the base domain is required when adding to the safe-list.

E.g. https://localhost:45678, https://www.mysite.com