I am trying to get the basic example code running ...
# ory-network
b
I am trying to get the basic example code running from: code-examples/protect-page-login using Network but it gets into an continuous redirect loop. It keeps redirecting between: < Location: http://localhost:4000/.ory/ui/login < Location: http://localhost:4000/.ory/self-service/login/browser?aal=&amp;refresh=&amp;return_to=&amp;organization=&amp;via= < Location: http://localhost:4000/.ory/ui/login?flow=b92201ec-5c05-4ad7-9a42-a28d68c7bee6 < Location: http://localhost:4000/.ory/self-service/login/browser?aal=&amp;refresh=&amp;return_to=&amp;organization=&amp;via= < Location: http://localhost:4000/.ory/ui/login?flow=bdc29c9d-36e3-4e93-bc5e-313d7064f69f ......... Any ideas would be appreciated. Thanks.
@high-optician-2097 Tagging you from your question in the post by @faint-judge-29851. This is the simplest example I could find to try and get working. The only difference from the example is that I am using the latest version of the "ory proxy" cli instead of the one in the package.json.
h
Which docs are you following?
b
I have read all of the online documentation (https://www.ory.sh/docs) front to back but the code examples I am trying to get working are from: https://github.com/ory/docs.git In particular docs/code-examples/protect-page-login/expressjs
f
QQ: When I do
ory tunnel <http://localhost:5173> --dev --port=4000 --project=$ORY_PROJECT_SLUG
Is there a way to whitelist “Allowed urls”? I thought
--dev
flag would relax the whitelist
h
@best-hair-72217 please follow the docs here to get code samples working: https://www.ory.sh/docs/getting-started/integrate-auth/expressjs
b
This looks like the same code but I'll give it a try first thing tomorrow morning. Thanks for all the help.
@high-optician-2097 Just wanted to close the loop and let you now this is working. I'm not sure what the difference is other than the version of the ory cli/proxy. The github project has a package-lock file that specifies an older version of the @ory/client. Thanks for your help.