Invalid path from backend 302 to angular-ui-router

  node.js, question
// node express
 res.redirect(302, 'http://myweb.com/app/');

My login and/appIs two sets of angular applications, I want to achieve after the successful login, the back-end 302 Found to/appPage, but failed.

Error reporting:

A wildcard '*  ' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'null' is therefore not allowed access. The cred  entials mode of an XMLHttpRequest is controlled by the withCredentials attribute.

For help, how to solve it?

This misstatement is cross-domain. Generally speaking, this can be solved

res.header("Access-Control-Allow-Origin", "*");

butthe credentials flag is trueThis means that you still need to transfer data, such as cookie, etc., then the cross-domain header setting at this time is prohibited as wildcard characters, so:

res.header("Access-Control-Allow-Origin", "http://myweb.com:8080");

What all don’t say, come to the document:
https://developer.mozilla.org …