Resolvedwidgetembedcors

Embed widget shows blank, console says CORS error

1,234 views2 replies18 likes
JW
Jen W.

Shopify Merchant · Posted 7 days ago

Pasted the Jarvis embed script into my Shopify theme. Widget never appears. Console shows:

Access-Control-Allow-Origin: null

Allowed origins in Jarvis settings includes https://myshop.myshopify.com. What am I missing?

2 Replies

Accepted answer
RT
Raj (Jarvis Team)Staff7 days ago

Support Engineer · DeskClone AI

Two likely culprits:

  1. Custom domain vs .myshopify.com: Shopify serves the same store under two origins. If your customers see myshop.com but your Jarvis config only allows myshop.myshopify.com, it won't load on the custom domain. Add both.
  2. Theme preview: If you're testing in the Shopify theme preview, the origin is admin.shopify.com, not your store domain. Test on a live or password-protected preview of the actual store, not the theme editor preview.

If neither is it, check that the script tag is in <head> or at the top of <body>. Placing it after other scripts that block rendering can cause it to not initialize.

24
JW
Jen W.7 days ago

Shopify Merchant

#1. I had only added the .myshopify.com origin. Added the custom domain, widget loaded immediately.

8