I have cross domain issues in development environment with webpack-dev-server running on port 8080 while express backend running on port 5000.
- Backend api method calls through AJAX raise CORS errors
- Clicking on link that points to backend api does not pass session data
These problems are solvable, but I wonder why bother if they are not going to happen in production (where both client and backend will use same port)
Can this problem be solved (e.g. by running dev server and express on the same port or any other way?)