I'm creating a web project where I am intergrating both Angular, for the frontend, and Go for the backend. With the backend I need to use the HTTP web server in order to display data using a RESTAPI, however, my issue is that I cannot run both servers on port 80 (which is basic knowledge). But I was wondering if there was a work around to this. I prefix all my backend pages with the prefix /backend/ (so for example https://example.com/backend/auth), therefore there shouldn't be any file/page collisions taking place.
One of the main reasons I am trying to accomplish this is because I want to set the cookies for the site in the backend as it'd be far easier and less complex for my situation, but I'm not sure how to because unless they are on the same port they would not share the same cookies.
Any help would be greatly appreciated, thank you.