mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 07:35:19 +00:00
cors fix
This commit is contained in:
1 parent
05f52d8545
commit
4228536fe6
1 file changed
+3
@@ -26,6 +26,7 @@ export const CreateSession = async ({
|
||||
headers: {
|
||||
"Accept": "application/json",
|
||||
"Content-Type": "application/json",
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
},
|
||||
credentials: 'include',
|
||||
body: JSON.stringify(request)
|
||||
@@ -44,6 +45,7 @@ export const GetSession = async () => {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
},
|
||||
credentials: 'include',
|
||||
})
|
||||
@@ -64,6 +66,7 @@ export async function DestroySession() : Promise<boolean> {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
},
|
||||
credentials: 'include',
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user