Even if the two applications share the same base URL, they are running on different ports, and that's enough for the browser to consider them as two different origins.

In this scenario, you should enable the Cross-Origin Resource Sharing (CORS) mechanism in the backend application.

More about CORS here.

Related Query

More Query from same tag