mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
911d71204f
This changes the way XML HTTP requests are handled on the verify endpoint so that they are redirected using a 401 instead of a 302/303.
12 lines
211 B
Go
12 lines
211 B
Go
package server
|
|
|
|
import (
|
|
"github.com/valyala/fasthttp"
|
|
|
|
"github.com/authelia/authelia/internal/middlewares"
|
|
)
|
|
|
|
func handleOPTIONS(ctx *middlewares.AutheliaCtx) {
|
|
ctx.SetStatusCode(fasthttp.StatusNoContent)
|
|
}
|