microscopic-answer-24504
08/11/2022, 7:10 AMproud-plumber-24205
08/11/2022, 8:43 AMwhite-article-28775
08/11/2022, 8:50 AMexport const ory = new V0alpha2Api(
new Configuration({
basePath: process.env.ORY_SDK_URL,
baseOptions: {
withCredentials: true,
},
}),
);
And I can see in network that the url is correct.
But when using any method at all, it returns what it should but throws a network error.
Is it possible that in @ory/integrations
something is being done to manipulate the request? Maybe this is cookie-related? The error is too generic, just a regular network error.proud-plumber-24205
08/11/2022, 8:59 AM@ory/integrations
package creates a reverse proxy inside your application. so it's the same as running the ory tunnel / proxy
proud-plumber-24205
08/11/2022, 8:59 AMwhite-article-28775
08/11/2022, 9:05 AMwhite-article-28775
08/11/2022, 9:05 AMwhite-article-28775
08/11/2022, 9:06 AMproud-plumber-24205
08/11/2022, 10:11 AMproud-plumber-24205
08/11/2022, 10:11 AMproud-plumber-24205
08/11/2022, 10:11 AMwhite-article-28775
08/11/2022, 10:12 AMwhite-article-28775
08/11/2022, 10:13 AMproud-plumber-24205
08/11/2022, 10:14 AMwhite-article-28775
08/11/2022, 10:14 AMwhite-article-28775
08/11/2022, 10:15 AMproud-plumber-24205
08/11/2022, 10:15 AMwhite-article-28775
08/11/2022, 10:16 AMwhite-article-28775
08/11/2022, 10:16 AMproud-plumber-24205
08/11/2022, 10:17 AMproud-plumber-24205
08/11/2022, 10:17 AMwhite-article-28775
08/11/2022, 10:17 AMproud-plumber-24205
08/11/2022, 10:18 AMproud-plumber-24205
08/11/2022, 10:18 AMory tunnel
proud-plumber-24205
08/11/2022, 10:19 AMory tunnel
. It's sort of a tool for Ory cloudwhite-article-28775
08/11/2022, 10:20 AMproud-plumber-24205
08/11/2022, 10:22 AMwhite-article-28775
08/11/2022, 10:24 AMwhite-article-28775
08/11/2022, 10:24 AMintegrations
thing statically with axios and give the axios instance to the ory client?proud-plumber-24205
08/11/2022, 10:26 AMintegrations
does this but inside the same node
app. Since node
is run on your machine and not "inside" the browser it can call any remote resource, so your browser is calling the node app which is on the same domain e.g. localhostproud-plumber-24205
08/11/2022, 10:27 AMproud-plumber-24205
08/11/2022, 10:30 AMenvironment
variables to point the ory tunnel
to your own Kratos instance
https://github.com/ory/cli/blob/a9d6512b84d805b694ba1b4bd3d60f1616608bf2/cmd/cloudx/proxy/cmd_proxy.go#L229-L231proud-plumber-24205
08/11/2022, 10:30 AMconst envVarSlug = "ORY_PROJECT_SLUG"
const envVarSDK = "ORY_SDK_URL"
const envVarKratos = "ORY_KRATOS_URL"
proud-plumber-24205
08/11/2022, 10:31 AMproud-plumber-24205
08/11/2022, 10:31 AMory tunnel
running on http://localhost:4000
and the tunnel will point to your Kratos instance https://your-domain.xyzproud-plumber-24205
08/11/2022, 10:32 AMwhite-article-28775
08/11/2022, 11:06 AMwhite-article-28775
08/11/2022, 11:06 AMproud-plumber-24205
08/11/2022, 11:06 AMory tunnel
it is only needed for the local setupproud-plumber-24205
08/11/2022, 11:07 AMwhite-article-28775
08/11/2022, 11:07 AMwhite-article-28775
08/11/2022, 11:07 AMwhite-article-28775
08/11/2022, 11:07 AMproud-plumber-24205
08/11/2022, 11:08 AMproud-plumber-24205
08/11/2022, 11:08 AMproud-plumber-24205
08/11/2022, 11:09 AMauth.<your-domain>.com
k8s is hosted on kratos.<your-domain>.com
proud-plumber-24205
08/11/2022, 11:09 AM<your-domain>.com
white-article-28775
08/11/2022, 11:16 AMproud-plumber-24205
08/11/2022, 11:16 AMvictorious-raincoat-48071
08/14/2022, 9:16 AMwhite-article-28775
08/14/2022, 9:22 AM