Alex_Ram
Help in server implementation, urgent
Good morning gentlemen,
I have not yet been able to lift my application.
Consulting Bard de Google, the following re -ome me:
The mistake you are receiving is a Corsa error. CORS is a security measure that prevents web pages from making applications to other domains. In your case, your React application is housed at the domain https://dinocapital.io, and is trying to make a request to domain https://servidormoralisdc-production.up.railway.app. As these two domains are different, Cors is blocking the application.
To solve this error, you must enable Cors on the server that houses the resource https://servidormoralisdc-production.up.railway.app. This implies adding the access-control-allow-origin heading to the server response. The value of this heading must be the origin of your React application, which is https://dinocapital.io.
To enable Cors on the Railway server, you must follow these steps:
Log in your Railway account.
Click on the project that contains the service that is causing the error.
Click on the service.
Click the "Configuration" tab.
In the "Cors" section, it activates the option "Allow Cors".
In the "allowed origins" field, enter https://dinocapital.io.
Click "Save".
Once you have enabled Cors on the server, the error should disappear and your React application should be able to make requests to the resource https://servidormoralisdc-production.up.railway.app without any problem.
Here is an example of how Cors configuration in Railway server would be:
{
"Cors": {
"Allowcors": True,
"Alloworigins": ["https://dinocapital.io"]
}
}
I hope this helps you solve the error.
89 replies
Help in server implementation, urgent
You could help me with this?
Check Railway's documentation: Review Railway's official documentation to obtain information on how to handle Cors policies in your applications implemented with your service. They can provide specific instructions or examples on how to configure Cors on your server.
Communicate with technical support: If you do not find relevant information in the documentation, get in touch with Railway's technical support team. They will be able to provide you with specific assistance and guide you in the configuration of Cors on your server.
89 replies
Help in server implementation, urgent
This link that is yours should not give me this error:
https://servidormoralisdc-production.up.railway.app/
APPLICATION FAILED TO RESPECT
Solved that, everything works well
89 replies
Help in server implementation, urgent
Gentlemen this link
https://servidormoralisdc-production.up.railway.app/server '
It tells me this:
APPLICATION FAILED TO RESPECT
89 replies