I have deployed the server and client separately on the render. I have provided the backend url for request in the frontend but where to put the frontend render url to send the response I am confused?

I have deployed the server and client separately on the render. I have provided the backend url for request in the frontend but where to put the frontend render url to send the response I am confused?

server url: https://snapwell-backend.onrender.com
frontend url: https://snapwell.onrender.com/

Hi,

In a typical client/backend setup:

  • The client needs to be configured to make calls to the backend URL to get its data.

  • The backend would likely need CORS headers configured to permit requests from the frontend URL (origin).

Alan

image
I want to change the request url of the frontend to https://snapwell-backend.onrender.com but it is showing https://snapwell.onrender.com on the netwrok

That URL would likely be set in your code, you would need to update it.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.