I have a webservice like:
@Controller
@RequestMapping("/")
public class ApplicationController {
@RequestMapping(value="/Changes", method = RequestMethod.GET)
public String inspect(ModelMap model) {
model.addAttribute("msg", "example");
return "index";
}
}
in the link: "localhost:8081/ChangesPDF/Changes?..."
I'm trying to get the response of this webservice through Alfresco that is in the link: "localhost:8080/share"
. I have different ports now (when I have same ports, this works good), so, with different ports I get the error in Alfresco:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8081/ChangesPDF/Changes?... (Reason: Header CORS 'Access-Control-Allow-Origin' missing).
How can I add this header?