Recently Shopify has updated their admin area. Theme was working fine on the old admin area stores. Now when I try to use it on new admin area store, section addition isn't working. On front it gives 'server error' but checking console shows the error below
Access to fetch at 'https://abc.com/?oseid=v4eofjx9G8mRZcTuMjUXgVmu&editor_domain=abc-uk.myshopify.com&ose_preview_versi...' from origin 'https://abc-uk.myshopify.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
It means that it is considering the shopify domain and the actual domain different and thus generating such error. Any idea as to how this can be resolved.
CORS error is basically when your theme tries to access an API (external code) that it is not allowed to. Which theme are you using?