How to know if the incoming request is from Oxygen preview? #1558
Unanswered
theocerutti
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to protect my Remix API route.
The way I want to protect them is to check the request url. If the request domain url is from one of my trusted domains then I authorize the request otherwise I don't.
The thing is in Oxygen preview mode the domain name is
***.myshopify.dev
so I want to authorize this domain also. However I want to authorize only the requests coming from my previews website..So the question is: How can I know if the request comes from one of my Oxygen preview website? Is there a header in the request that I can check ?
Also, why in Oxygen preview mode the NODE_ENV equals to "production" ?????
Beta Was this translation helpful? Give feedback.
All reactions