The solution to the Cross-domain problem of different Ports in Angular

recently started to learn, is still in the tutorial stage, there is a ready-made background to test, but found a problem, angular before and after the project separation mode, will inevitably encounter different port cross-domain problem, why there is no solution in the official tutorial.
in my case, the port of the front segment of Angular is 4200, and the running port of my background project is 8080. How to connect to the background to request data across domains, thank you!


set reverse proxy. Just write a configuration file in the project


Baidu angular proxy will have many detailed steps

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9eeee-1a17.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9eeee-1a17.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?