Unable to add sections on new admin customization area

adil2
New Member
1 0 0

Hi

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. 

0 Likes

Hey,

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?

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Using a free theme? Improve it with copy/paste code snippets clicking here.
◦ Looking to hire an experienced developer? Same day response: ezfycode@gmail.com.
0 Likes