Configurable CORS credentials (#456)

* Configurable CORS credentials

* update readme
This commit is contained in:
Aine
2025-04-05 18:08:29 +00:00
committed by GitHub
parent f4084969b6
commit 218f0ba03c
7 changed files with 62 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ const authProvider: AuthProvider = {
console.log("login ");
let options: Options = {
method: "POST",
credentials: GetConfig().corsCredentials,
body: JSON.stringify(
Object.assign(
{
@@ -151,6 +152,7 @@ const authProvider: AuthProvider = {
const options: Options = {
method: "POST",
credentials: GetConfig().corsCredentials,
user: {
authenticated: true,
token: `Bearer ${access_token}`,