API working in live Shopify app but failing in development on Order Status Page (UI Extension) – CORS issue?

Hi devs :waving_hand:

I’m facing a confusing issue with a Shopify Order Status Page UI Extension.

What’s happening

  • My API works perfectly in the live app

  • But in development mode, the same API call fails on the Order Status Page

  • The error I’m getting is a CORS error

Access to fetch at ‘https://my-api-url/api/order-status’
from origin ‘https://extensions.shopifycdn.com
has been blocked by CORS policy:
No ‘Access-Control-Allow-Origin’ header is present.

If anyone has faced this before or knows the correct Shopify-recommended approach, please share :folded_hands:
Would really help the community.

Thanks! :rocket: