MM-23574: Remove Segment. (#14712)
* MM-23574: Eliminate Segment. * Update dependencies. * Fix review suggestions.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6158e91308
Коммит
e5addef19b
@@ -167,7 +167,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("X-Frame-Options", "SAMEORIGIN")
|
||||
// Set content security policy. This is also specified in the root.html of the webapp in a meta tag.
|
||||
w.Header().Set("Content-Security-Policy", fmt.Sprintf(
|
||||
"frame-ancestors 'self'; script-src 'self' cdn.rudderlabs.com cdn.segment.com/analytics.js/%s",
|
||||
"frame-ancestors 'self'; script-src 'self' cdn.rudderlabs.com%s",
|
||||
h.cspShaDirective,
|
||||
))
|
||||
} else {
|
||||
|
||||
Ссылка в новой задаче
Block a user