#CORS issue with cloudlfared tunnel

30 messages · Page 1 of 1 (latest)

celest pewter
#

Have you set a Custom Domain in your Appwrite project's settings?

sage quest
sage quest
sage quest
stable wadi
#

ah okay, I'll take a look ty

sage quest
#

Only 1

#

That should be the IP I think

stable wadi
#

ah okay, do you mean the ip address of the server hosting my domain?

stable wadi
#

No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

actually there wasn't a header present this time

sage quest
#

Hmmm interesting. What's the code?

celest pewter
#

@sage quest Wouldn't the hostname need to be "api.apoth.dev" for the Platform?

sage quest
stable wadi
#

a snippet from the auth.js I use to log users in

sage quest
#

Looks like your endpoint is not pointing to appwrite

#

But to a litespeed 404 page

stable wadi
#

ah okay

sage quest
stable wadi
#

will give that a wirl

stable wadi
#

still having the same issues, could anything else be causing my endpoint to be broken?

sage quest
#

An A record pointing to your appwrite instance IP address

stable wadi
sage quest
#

But I think that's a local IP address?

stable wadi
sage quest
stable wadi
#

really feels like just using the cloud service would be easier atp 😅