I have encountered a cross-domain problem today. I would like to ask that the server side is not allowed to cross-domain, and the client can't request data anyway.

Today, I encountered a cross-domain problem. I would like to ask that the server side is not allowed to cross-domain. The client cannot request data anyway, so it can be bypassed?

Mar.28,2021

using webworker can bypass simply opening a webworker to request data to be obtained and then sending it back


you can see that niginx, uses proxies to make ports consistent


 proxyTable: {
      '/api': {
        target: 'http://127.0.0.1:3000', // 
        // secure: false,  // https
        changeOrigin: true, // 
        pathRewrite: {
          '^/api': ''
        }
      }
Menu