I have a small spring boot app which exposes a REST-service with two methods "/upload" (POST) and "/show" (GET)
When I run my angular 2 app on my computer, http://computer.domain.com:4200, and have the spring boot rest-service on the same computer on a different port, http://computer.domain.com:8080, the CSRF-part of angular 2 doesn't wanna send the XSRF-token with the header.
If I deploy the Angular GUI within the spring boot WAR so that both the REST and GUI is accesiable via http://computer.domain.com:8080 everything that's CSRF-related then works.
I thought that Cookies and angular were 'agnostic' when it came to what port they were sent from, as long as it originated from the same server.
Am I missing some piece of config that makes angular send CSRF-headers?