feat: added a login page with Authentik authentication
This commit is contained in:
@@ -47,9 +47,9 @@ describe('credentialed route CORS', () => {
|
||||
body,
|
||||
}))
|
||||
|
||||
expect(trusted.status).toBe(400)
|
||||
expect(trusted.status).toBe(401)
|
||||
expect(trusted.headers.get('access-control-allow-origin')).toBe(TRUSTED_ORIGIN)
|
||||
expect(untrusted.status).toBe(400)
|
||||
expect(untrusted.status).toBe(401)
|
||||
expect(untrusted.headers.get('access-control-allow-origin')).toBeNull()
|
||||
})
|
||||
|
||||
@@ -63,9 +63,9 @@ describe('credentialed route CORS', () => {
|
||||
headers: {origin: UNTRUSTED_ORIGIN},
|
||||
}))
|
||||
|
||||
expect(sameOrigin.status).toBe(400)
|
||||
expect(sameOrigin.status).toBe(401)
|
||||
expect(sameOrigin.headers.get('access-control-allow-origin')).toBeNull()
|
||||
expect(unrelated.status).toBe(200)
|
||||
expect(unrelated.status).toBe(401)
|
||||
expect(unrelated.headers.get('access-control-allow-origin')).toBe('*')
|
||||
})
|
||||
|
||||
@@ -74,7 +74,7 @@ describe('credentialed route CORS', () => {
|
||||
headers: {origin: UNTRUSTED_ORIGIN},
|
||||
}))
|
||||
|
||||
expect(schema.status).toBe(200)
|
||||
expect(schema.status).toBe(401)
|
||||
expect(schema.headers.get('access-control-allow-origin')).toBe('*')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user