#cors policy block

53 messages · Page 1 of 1 (latest)

flat pilot
#

I have disabled cors on chrome and my function is accessible on my frontend but not working unless i disable cors. I have added the domain to platform and not fixed. Any help on this will be appreciated.

thorn pasture
#

What's the fill error you're getting?

flat pilot
thorn pasture
flat pilot
thorn pasture
flat pilot
#

By calling function domain

thorn pasture
flat pilot
#

Yes, I have tried by adding both , I even used wildcard

thorn pasture
#

Could you send the full error or errors?

flat pilot
#

Okay

thorn pasture
flat pilot
#

No

flat pilot
thorn pasture
#

What's it's code?

flat pilot
#

Iam using database only, my app do not require logging, incase this is the case

flat pilot
flat pilot
jade pike
flat pilot
jade pike
flat pilot
#

I have added that. but yet not fixed. When i search the endpoint it normally prints the response but in my code not working. https://codefile.io/f/SjOX0Q3r3T

flat pilot
#

My appwrite is self hosted

jade pike
flat pilot
jade pike
jade pike
jade pike
flat pilot
flat pilot
jade pike
flat pilot
#

Iam using http

how shall I send you the log?

#

Request Method:
OPTIONS
Status Code:
204 No Content

Referrer Policy:
strict-origin-when-cross-origin
Access-Control-Allow-Headers:
Content-Type, Authorization, X-Requested-With
Access-Control-Allow-Methods:
GET, POST, OPTIONS
Access-Control-Allow-Origin:
*
Content-Type:
application/json; charset=utf-8
Date:
Sun, 21 Jul 2024 08:11:27 GMT
Server:
swoole-http-server
X-Debug-Speed:
0.033813953399658
Accept:
/
Accept-Encoding:
gzip, deflate
Accept-Language:
en-US,en;q=0.9
Access-Control-Request-Headers:
content-type,x-asbek-key,x-asbek-project
Access-Control-Request-Method:
GET
Connection:
keep-alive

#

Referrer Policy:
strict-origin-when-cross-origin
Content-Type:
application/json
Referer:
http://localhost:3000/
User-Agent:

jade pike
flat pilot
flat pilot
flat pilot
jade pike
flat pilot
flat pilot
jade pike
flat pilot