In nginx, static pages are configured and cross-domain problems occur in data transfer. The service has different ports with ip. How to solve the problem

  node.js, question

Nginx starts the static page written by angular, and then uses Ajax to call node services of different ports with the same protocol and domain name in the static page, thus causing the problem of homology and cross-domain

Nginx is used to monitor all requests on the page and then jump to different ports according to different requests.