mirror of
https://github.com/System-End/site.git
synced 2026-04-19 15:18:18 +00:00
!!!!! cors !!!!!
This commit is contained in:
parent
f21cb3e698
commit
2b810e59f9
2 changed files with 13 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ const joinTable = new AirtablePlus({
|
|||
})
|
||||
|
||||
export default async (req, res) => {
|
||||
res.setHeader('Access-Control-Allow-Origin', 'https://hackclub.com')
|
||||
res.setHeader('Access-Control-Allow-Origin', '*')
|
||||
if (req.method === 'POST') {
|
||||
const data = JSON.parse(req.body)
|
||||
|
||||
|
|
|
|||
13
vercel.json
13
vercel.json
|
|
@ -6,5 +6,16 @@
|
|||
},
|
||||
"env": {
|
||||
"SLACK_BOT_TOKEN": "@slack-bot-token-production-8avf"
|
||||
}
|
||||
},
|
||||
"headers": [
|
||||
{
|
||||
"source": "/api/join",
|
||||
"headers": [
|
||||
{
|
||||
"key": "Access-Control-Allow-Origin",
|
||||
"value": "*"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue