Home > Back-end >  In the project cross domain problem
In the project cross domain problem

Time:09-24

Have two projects, is A web page, there is an AJAX request, request B web interface of the project, A and B with the domain name, xxx.com/A and xxx.com/B,
To solve the problem of cross domain of A request, now I set on B Tomcat cors filter, also tried to add the response to the code. The setHeader (" Access - Control - Allow - Origin ", "*"); But not all, isn't it must be the front line coordinated related set of chrome? But I don't see the returned response header in the Access Control Allow Origin, so are not sure whether I have a problem backend server Settings

CodePudding user response:

@ CrossOrigin this try, add in the controller class
  • Related