Home > Back-end >  SSM project backend interface at front desk call the wrong, don't get json, how to solve?
SSM project backend interface at front desk call the wrong, don't get json, how to solve?

Time:12-17

CodePudding user response:

The backend support cross-domain line
Write a filter, set the request header

CodePudding user response:

Bah, response headers, hand -

CodePudding user response:

The cross-domain so error

Common practice is whether access to the front or back end, are accessing the same webserver, in webpack development front-end + for springmvc back-end, for example, are generally in webpack configuration backend address calls using a proxy, rather than direct access to the backend address, so there is no cross domain,

CodePudding user response:

You directly to provide the HTTP interface to the person you visit bai, you that involve cross-domain problem

CodePudding user response:

Cross-domain problem, configuration allows cross domain
  • Related