Skip to content

Commit

Permalink
testing cors again, now with js headers! (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: ctih <nevalaonni@proton.me>
  • Loading branch information
ctih1 and ctih committed Mar 3, 2024
1 parent 33c7e2f commit 7021136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion account/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ async function SignUp(element) {
};
await fetch(`${server_domain}/sign-up`, {
method: "POST",
mode: "no-cors",
headers: {
"Content-Type": "application/json",
'Access-Control-Allow-Origin': 'https://frii.site',
"Access-Control-Allow-Credentials": "true"
},
body: JSON.stringify(creds)
})
Expand Down

0 comments on commit 7021136

Please sign in to comment.