Back

[SOLVED] how i create my own certificate

  • 1
  • Web
Shoxious
17 May, 2023, 04:42

has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://localhost' that is not equal to the supplied origin. cloud.fdap.at/v1/databases/646151af2dbec1f2abf6/collections/646151c12fd1d2319057/documents:1 Failed to load resource: net::ERR_FAILED

TL;DR
User wants to know how to create their own certificate. There is no clear solution provided in the thread.
D5
17 May, 2023, 09:40

Did you have used localhost as the appwrite URL?

D5
17 May, 2023, 09:41

That does not seems to be related with this issue, so if possible, create a new post with this error you're experiencing πŸ™

Shoxious
19 May, 2023, 16:10

i have nothing set here

D5
19 May, 2023, 16:32

Then that could be the problem, put there your domain

Shoxious
19 May, 2023, 16:35

the problem is. if i put here a domain. and call von the generated default vercel url. i get a cors error

Shoxious
19 May, 2023, 16:35

maybe i have a thinking error

Shoxious
20 May, 2023, 00:19

i think the problem for the cors is :

Shoxious
20 May, 2023, 00:19

i host my test site on vercel

Drake
20 May, 2023, 02:14

Did you add a web platform for your app?

Shoxious
20 May, 2023, 10:13

no

Shoxious
20 May, 2023, 10:16

wenn i start my nuxt app locally it works. but when i deploy it on vercel i get the cors

safwan
20 May, 2023, 10:16

That's probably because of the mismatch in the hostname

safwan
20 May, 2023, 10:17

on a local environment, the hostname would be localhost or 127.0.0.1

safwan
20 May, 2023, 10:17

On a vercel deploy, it'll be something like you-app-name.vercel.app

safwan
20 May, 2023, 10:18

So what you can do is, check what the URL is for your vercel app, and make that the hostname in the project settings in Appwrite

Shoxious
20 May, 2023, 10:29

in the gui or in the docker-composer?

safwan
20 May, 2023, 10:35

GUI

D5
20 May, 2023, 11:11

how i create my own certificate

D5
20 May, 2023, 11:12

Since doesn't seems solved, reopening

Shoxious
20 May, 2023, 12:02

ty for your help now its solved. I think i will write a github gist for that problem πŸ™‚ ❀️

safwan
20 May, 2023, 12:12

Please do share the link to the gist when you're done! Will be helpful to others!

safwan
20 May, 2023, 12:12

[SOLVED] how i create my own certificate

Shoxious
20 May, 2023, 12:27

y i will do it πŸ™‚

Shoxious
20 May, 2023, 12:27

ty for your help

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