Changing cart language results in CORS block and

I have a static site with localization, so far en and jp. The cart is correctly picking up the

html lang=“jp”

tag and attempts to switch to this language.

However, then there is an issue with CORS. The requested server is the same as the usual . And I am using a Content-Security-Policy with the;

Access to XMLHttpRequest at ‘’ from origin ‘’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.