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

EugeneCXY
Excursionist
16 3 4

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?
 
I just want it to be public to everyone all the time. What am I missing here?
 
EugeneCXY_2-1626918042599.png

 

 

 

Replies 3 (3)

PTP
Shopify Partner
14 0 2

Did you ever figure this out? 

EugeneCXY
Excursionist
16 3 4

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

jessica0318
Pathfinder
95 0 15

Did you solve this problem now?