{{ shop.url }} gives the url of the original domain, not the domain added to the market

If a domain is apointed to a market, the shop.url still gives the url of the original store.

This will produce CORS error if this url is used in ajax calls.

Can this be change or add the market domain to Access-Control-Allow-Origin header.

or is their an easy work around. I know i can replace the url with js. But i don’t think this is the right sollution.

Kind regard

Erwin

Hi,

Use either {{ shop.secure_url }} or {{ shop.domain }}

they all give the original domain not the domain off the market.