I am using Play 2 with Java and one of my controller methods returns a redirect
:
return redirect(<some other domain>);
The client side call happens from an angular controller through $http
:
$http.get("/signin").
...
This does not work; Firefox tells me to enable CORS. So I tried to enable CORS as suggested by the answers to this StackOverflow question. But I still get the same error. However that answer seems to be directed towards JSON responses. Do I need to do anything different for a redirect?
I would have thought that setting Access-Control-Allow-Origin
to *
would do the trick, but that doesn't seem to work.