webrtc: add Location header to CORS-allowed headers (#2453)

This commit is contained in:
Rui Lopes 2023-10-04 16:00:15 +01:00 committed by GitHub
parent 4ba2dc1b34
commit 215f88e2dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -262,7 +262,7 @@ func (s *webRTCHTTPServer) onRequest(ctx *gin.Context) {
}
ctx.Writer.Header().Set("Content-Type", "application/sdp")
ctx.Writer.Header().Set("Access-Control-Expose-Headers", "ETag, Accept-Patch, Link")
ctx.Writer.Header().Set("Access-Control-Expose-Headers", "ETag, Accept-Patch, Link, Location")
ctx.Writer.Header().Set("ETag", res.sx.secret.String())
ctx.Writer.Header().Set("ID", res.sx.uuid.String())
ctx.Writer.Header().Set("Accept-Patch", "application/trickle-ice-sdpfrag")