Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Feb 20, 2024
1 parent 23d52fb commit 152ed69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/api/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const handler = {
if(allow.includes(origin)){
const csrftoken = generateRandomString(128)
await client.execute(`INSERT INTO csrftoken VALUES (default,default,"${csrftoken}");`)
console.log(aaaaa)
return new Response(JSON.stringify({"csrftoken": csrftoken}), {
headers: { "Content-Type": "application/json",
"Access-Control-Allow-Origin": origin
Expand Down

0 comments on commit 152ed69

Please sign in to comment.