Angular and Go Server on Same Port -
i'm creating web project intergrating both angular, frontend, , go backend. backend need use http web server in order display data using restapi, however, issue cannot run both servers on port 80 (which basic knowledge). wondering if there work around this. prefix backend pages prefix /backend/ (so example https://example.com/backend/auth), therefore there shouldn't file/page collisions taking place.
one of main reasons trying accomplish because want set cookies site in backend it'd far easier , less complex situation, i'm not sure how because unless on same port not share same cookies.
any appreciated, thank you.
Comments
Post a Comment