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.
Summary
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
Rank 7: Quantum Computer
Mar 21, 2023, 16:57
Have you added your new website address inside the Web Integration process?
Binyamin
Rank 7: Quantum Computer
Mar 21, 2023, 16:58
In dev you can field it with * but remember to change it in production
Vinojan Abhimanyu
@everyone
Mar 21, 2023, 17:03
the website is currently runs on localhost
Binyamin
Rank 7: Quantum Computer
Mar 21, 2023, 17:04
So you can write localhost in the host name * will cover all options
Vinojan Abhimanyu
@everyone
Mar 21, 2023, 17:05
Where can I access that page?
Binyamin
Rank 7: Quantum Computer
Mar 21, 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
Rank 7: Quantum Computer
Mar 21, 2023, 17:07
This is the look-and-feel in the updated version
Vinojan Abhimanyu
@everyone
Mar 21, 2023, 17:09
How can I get the updated version. I just installed the appwrite..
Vinojan Abhimanyu
@everyone
Mar 21, 2023, 17:16
Could you provide a solution for that?
Binyamin
Rank 7: Quantum Computer
Mar 21, 2023, 17:16
How did you installed it?
Vinojan Abhimanyu
@everyone
Mar 21, 2023, 17:18
its provided from my company, They installed on the cloud.