d3adb0y
01/12/2023, 5:27 PMsupertokens_python.exceptions.GeneralError: Since your API and website domain are different, for sessions to work, please use https on your apiDomain and don't set cookieSecure to false.
rp
01/12/2023, 5:51 PMhttps://api.yourapp.com
.d3adb0y
01/12/2023, 5:52 PMrp
01/12/2023, 5:53 PMd3adb0y
01/12/2023, 5:53 PMSuperTokens.init({
appInfo: {
appName: "Virtual Labs API",
apiDomain: "http://localhost:9000",
websiteDomain: "http://localhost:5173",
apiBasePath: "/auth",
websiteBasePath: "/auth"
},
recipeList: [
Passwordless.init({
useShadowDom: false,
contactMethod: "EMAIL"
}),
Session.init()
]
});
rp
01/12/2023, 5:54 PMd3adb0y
01/12/2023, 5:54 PMsession.init(cookie_same_site="lax", cookie_secure=False)
rp
01/12/2023, 5:54 PMd3adb0y
01/12/2023, 5:56 PMrp
01/12/2023, 5:56 PMd3adb0y
01/12/2023, 5:57 PM