fix(goong): add Cross-Origin-Resource-Policy header to proxy response
All checks were successful
Build and Release / release (push) Successful in 1m32s
All checks were successful
Build and Release / release (push) Successful in 1m32s
This commit is contained in:
@@ -84,6 +84,7 @@ func (ctrl *goongController) Proxy(c fiber.Ctx) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
c.Set("Vary", "Origin")
|
c.Set("Vary", "Origin")
|
||||||
|
c.Set("Cross-Origin-Resource-Policy", "cross-origin")
|
||||||
|
|
||||||
if c.Method() == "GET" {
|
if c.Method() == "GET" {
|
||||||
if statusCode == fiber.StatusOK || statusCode == fiber.StatusNotModified {
|
if statusCode == fiber.StatusOK || statusCode == fiber.StatusNotModified {
|
||||||
|
|||||||
Reference in New Issue
Block a user