Hey, how are you doing?
In this article, we are going to explain how to solve the Cross-Origin Resource Sharing message error, as you can see below:
What is Cross-Origin Resource Sharing (CORS)?
The official MDN Web Docs said that: "Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell a browser to let a web application running at one origin (domain) have permission to access selected resources from a server at a different origin. A web application executes a cross-origin HTTP request when it requests a resource that has a different origin (domain, protocol, and port) than its own origin."
To solve it...
Please, note that the following procedures are recommended only to your local environments, in production you should use HTTPS instead of HTTP.
First, you need to activate web hosting following the tutorial below:
After that, you need to change the server URL in your initialization code from "https://parseapi.back4app.com/" to "https://<your_subdomain>.back4app.io".