Spring 4.2 has CORS support, however allowed Origin(s) must be set manually. Which is problematic when combined with authentication, because authentication not supported with Access-Control-Allow-Origin: *
.
How to set this automatically? Very useful for Ionic/Cordova clients.
i.e. if client sends Origin: assets-library://whatever/
then server will send Access-Control-Allow-Origin: assets-library://whatever/
Feature request: https://jira.spring.io/browse/SPR-13511