Skip to content

Commit 234f252

Browse files
pulltheflowerDev Agent
andauthored
allow iframe embedding in reverse proxy (#918)
Co-authored-by: Dev Agent <dev-agent@example.com>
1 parent deda6ad commit 234f252

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

builder/proxy/reverse_proxy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ func (rp *reverseProxyImpl) ServeHTTP(w http.ResponseWriter, r *http.Request, ap
7878
// remove duplicate X-Request-Id header from downstream response
7979
// because it is already set by the gateway middleware
8080
resp.Header.Del(trace.HeaderRequestID)
81+
// allow upstream pages to be embedded in iframes by the parent app
82+
resp.Header.Del("X-Frame-Options")
83+
resp.Header.Del("Content-Security-Policy")
8184

8285
return nil
8386
}

0 commit comments

Comments
 (0)