response.go 906 B

1234567891011121314
  1. // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
  2. // SPDX-License-Identifier: Apache-2.0
  3. package response // import "miniflux.app/v2/internal/http/response"
  4. // ContentSecurityPolicyForUntrustedContent is the default CSP for untrusted content.
  5. // default-src 'none' disables all content sources
  6. // form-action 'none' disables all form submissions
  7. // sandbox enables a sandbox for the requested resource
  8. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
  9. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/form-action
  10. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
  11. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src
  12. const ContentSecurityPolicyForUntrustedContent = `default-src 'none'; form-action 'none'; sandbox;`