Back

[SOLVED] Can't login from localhost

  • 0
  • Accounts
  • Web
IRules
22 May, 2023, 20:09

doesn't fix it

TL;DR
The user was unable to login from localhost but the issue was resolved by doing a refresh. However, a new error of CORS 301 occurred. They were provided with a link for possible assistance. The suggestion was made to update the `_APP_OPTIONS_FORCE_HTTPS` value in the `.env` file and run `docker compose up -d` again. Another suggestion was to add `app.irules.net` as a web platform in the console and access it using http://app.irules.net:3000. The user was also advised to edit the `c:\Windows\System32\Drivers\etc\hosts` file and add `
IRules
22 May, 2023, 20:10

also works if I access my local dev env from a subdomain of the same domain as appwrite

IRules
22 May, 2023, 20:10

so I have to point subdomains to everyone from my team?

Binyamin
22 May, 2023, 20:12

Try with fabricate host to localhost

Binyamin
22 May, 2023, 20:12

What operation system your working with?

IRules
22 May, 2023, 20:12

windows 11 latest

Binyamin
22 May, 2023, 20:13

So edit c:\Windows\System32\Drivers\etc\hosts (With admin rights) Add your host

TypeScript
127.0.0.1 app.irules.net
Binyamin
22 May, 2023, 20:13

Add app.irules.net as Web platform in the console.

Then access http://app.irules.net:3000

IRules
22 May, 2023, 20:20

same error, doesn't like makeshift domains

Binyamin
22 May, 2023, 20:22

I've find one more different

Binyamin
22 May, 2023, 20:24

It has to do with what Steven wrote before.

Is your Cloudflare tunnel is http or https?

You can try to edit the value of _APP_OPTIONS_FORCE_HTTPS and set as enabled in the .env file Then run docker compose up -d again and let us know.

Binyamin
22 May, 2023, 20:26

For example You can see in my tunnels that the budibase is only HTTP

IRules
22 May, 2023, 20:30

doesn't seem to want https

IRules
22 May, 2023, 20:30
Binyamin
22 May, 2023, 20:30

Have you update this _APP_OPTIONS_FORCE_HTTPS ?

IRules
22 May, 2023, 20:30

yes

IRules
22 May, 2023, 20:31
IRules
22 May, 2023, 20:35

thank you

IRules
22 May, 2023, 20:35

now the error is a CORS 301

IRules
22 May, 2023, 20:35

for account.get

Binyamin
22 May, 2023, 20:35

You can go back and test on localhost now.

IRules
22 May, 2023, 20:36

needed a refresh, now works

IRules
22 May, 2023, 20:36

thank you both!

IRules
22 May, 2023, 20:36

[SOLVED] Can't login from localhost

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