mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
I modified the proxy host cache we already had and were using for websocket csp headers to also include the wildcard app host, then used those for frame-src policies. I did not add frame-ancestors, since if I understand correctly, those would go on the app, and this middleware does not come into play there. Maybe we will want to add it on workspace apps like we do with cors, if we find apps are setting it to `none` or something. Closes https://github.com/coder/internal/issues/684
9 lines
172 B
Go
9 lines
172 B
Go
package proxyhealth
|
|
|
|
type ProxyHost struct {
|
|
// Host is the root host of the proxy.
|
|
Host string
|
|
// AppHost is the wildcard host where apps are hosted.
|
|
AppHost string
|
|
}
|