Back

I am using Appwrite for the first time. I got an error

  • 1
  • Web
Vinojan Abhimanyu
21 Mar, 2023, 16:57

I am using Appwrite for the first time. While I am developing the simple todo application with apperite cloud, I got an error, Here I mentioning the error which I have got .

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://hl-appwriter.buildapi.cyou/v1/account. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 301.

TL;DR
The user is facing a Cross-Origin Request Blocked error while using Appwrite for the first time. They received the error message "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [endpoint URL] (Reason: CORS header 'Access-Control-Allow-Origin' missing). Status code: 301." The solution is to make sure that the endpoint URL is HTTPS instead of HTTP. They can follow the installation methods in the provided URLs or use the auto-deploy option if using DigitalOcean. To fix the error, they should add a new platform in the main project view and choose 'Web' under Platforms. It
Binyamin
21 Mar, 2023, 16:57

Have you added your new website address inside the Web Integration process?

Binyamin
21 Mar, 2023, 16:58

In dev you can field it with * but remember to change it in production

Vinojan Abhimanyu
21 Mar, 2023, 17:03

the website is currently runs on localhost

Binyamin
21 Mar, 2023, 17:04

So you can write localhost in the host name * will cover all options

Vinojan Abhimanyu
21 Mar, 2023, 17:05

Where can I access that page?

Binyamin
21 Mar, 2023, 17:06

On Platforms on the bottom you'll have option to add one, choose Web

P.s. It's looks like you're using an outdated version of Appwrite

Binyamin
21 Mar, 2023, 17:07

This is the look-and-feel in the updated version

Vinojan Abhimanyu
21 Mar, 2023, 17:09

How can I get the updated version. I just installed the appwrite..

Vinojan Abhimanyu
21 Mar, 2023, 17:16

Could you provide a solution for that?

Binyamin
21 Mar, 2023, 17:16

How did you installed it?

Vinojan Abhimanyu
21 Mar, 2023, 17:18

its provided from my company, They installed on the cloud.

Binyamin
21 Mar, 2023, 17:19

Okay, so they need to follow one of the methods available in this URL https://appwrite.io/docs/installation#installWithDocker

If you're using DigitalOcean then you also have an auto-deploy option https://marketplace.digitalocean.com/apps/appwrite

Anyhow for your use-case you can keep doing so by adding a new platform in the main project view.

Vinojan Abhimanyu
21 Mar, 2023, 17:22

okay thankyou

Drake
21 Mar, 2023, 18:47

Please make sure you're using HTTPS for your endpoint

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