Shopify script tag: CORB error, script tag redirects to authentication flow

Hey all,

I am stuck. I am using node.js with a custom Shopify app built using Shopify cli.

The script tag I created using graphql keeps throwing a CORB error when it goes live.

createScripts({
variables: {
input: {
src: “https://arcane-spire-11260.herokuapp.com/thanks-script.js”,
displayScope: “ORDER_STATUS”
},
},

It seems like I have to authenticate first then it shows but I want it to always show the script tag.

Why does my heroku server always need to authenticate with the shop before it can display the script?

2 Likes

Did you ever figure this out?

Don’t use heroku to host your script, use another provider like AWS S3

Did you solve this problem now?