Fix auth prompting for API.
This commit is contained in:
parent
c20ec11cd2
commit
4b9a271115
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ router.use(cors({
|
||||||
credentials: true,
|
credentials: true,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
router.use('/*', function* authMiddleware(next) {
|
router.use('*', function* authMiddleware(next) {
|
||||||
try {
|
try {
|
||||||
yield next;
|
yield next;
|
||||||
if (this.response.status === 404 && !this.response.body) {
|
if (this.response.status === 404 && !this.response.body) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue