I'm trying to use the javascript Ory SDK in our re...
# talk-kratos
t
I'm trying to use the javascript Ory SDK in our react native mobile app for login. But I keep getting this error:
Copy code
The HTTP Request Header included the \"Cookie\" key, indicating that this request was made by a Browser. The flow however was initiated as an API request. To prevent potential misuse and mitigate several attack vectors including CSRF, the request has been blocked. Please consult the documentation.
To initialize the flow I am using:
Copy code
const ory = new V0alpha2Api(configuration);

ory.initializeSelfServiceLoginFlowWithoutBrowser().then(({ data }) => setFlow(data));
To initialize the flow I am using:
Copy code
const ory = new V0alpha2Api(configuration);

ory.submitSelfServiceLoginFlow(String(flow.id), { method: 'password', identifier: email, password });
Not sure how a cookie got added to the request headers because we are using the Ory SDK to submit the request. Has anyone ran into this before?