Back

CORS BLOCKED

  • 0
  • Web
Gi Diaz
19 Aug, 2024, 02:04

Hello Community! I have this https://vitecare-gi.vercel.app/ website built with Vite-React, and TypeScript, and deployed in Vercel that is getting blocked by CORS. I have added the platform as vitecare-gi -> host * . The application does not require a user to sign in.

On the contrary, the only thing that I need is for a user to add their information a first time and it should added to the database. Can someone help me understand what am I missing from appwrite? I have checked some of the previous posts but none that I can find with the same issue in vite-react - vercel

TL;DR
Developers facing CORS blocking issue when trying to add user information to a database via Vite-React deployed on Vercel. Need help with understanding what's missing from Appwrite configuration. Solution: Check and adjust CORS settings within Appwrite to allow requests from the Vercel deployment domain.
Steven
19 Aug, 2024, 02:14

Please share the request headers from the network logs for the failing request

Gi Diaz
19 Aug, 2024, 02:18
Gi Diaz
19 Aug, 2024, 02:22

This is one of my previous errors: POST https://cloud.appwrite.io/v1/users 409 (Conflict)

Gi Diaz
19 Aug, 2024, 02:43

` :authority: vitecare-gi.vercel.app :method: GET :path: /patients/66baa039000517458ce7/register :scheme: https accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding: gzip, deflate, br, zstd accept-language: en-US,en;q=0.9 cache-control: no-cache pragma: no-cache priority: u=0, i sec-ch-ua: "Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "macOS" sec-fetch-dest: document sec-fetch-mode: navigate sec-fetch-site: none sec-fetch-user: ?1 upgrade-insecure-requests: 1 user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 ``

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more