This commit is contained in:
taskylizard 2023-11-04 22:56:06 +05:30
parent 0cebed8923
commit 2056c5978b
No known key found for this signature in database
GPG Key ID: 5CABA3D642DDC497
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ jobs:
- name: Build
run: pnpm api:build
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
NITRO_PRESET: cloudflare
- name: Publish to Cloudflare

View File

@ -46,6 +46,8 @@ async function handleSubmit(type?: string) {
const response = await fetch("https://feedback.tasky.workers.dev", {
method: "POST",
headers: {
'Access-Control-Allow-Origin':'*',
'Access-Control-Allow-Methods':'POST,PATCH,OPTIONS'
"Content-Type": "application/json",
},
body: JSON.stringify(body),