Skip to content
Zotonic
  • Start
  • Guides
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Controllers · mod_base
  • Reference
  • Backend developer
  • Logging and monitoring
  • Controller
  • HTTP
  • Security

controller_csp_report

Module

mod_base

Controller handling Content-Security-Policy reports.

Set in the report-to header of your Content-Security-Policy the URL to this controller to receive reports about policy violations.

Edit on GitHub

Related documentation

Controllers

controller_keyserver_key

Publish the site's RSA encryption public key as JavaScript.

Notifications

observe_content_security_report/2

Handle a content security report

Notifications

observe_content_security_header(Default, Acc, Context)

Check and possibly modify the http response security headers All headers are in lowercase.

Controllers

controller_logoff

Controller that logs off a user, destroying the session. It also removes any “remember me” cookies the user has, so that auto-logon is…

Notifications

observe_security_headers/2

Check and possibly modify the http response security headers All headers are in lowercase.

Controllers

controller_log_client

Controller to log UI errors and events.

Controllers

controller_http_error

This controller is called for serving http error pages.

Controllers

controller_file

Serve an uploaded-, resized- or library file.

Controllers

controller_mqtt_transport

Controller for transport of MQTT data between the browser (client) and server.

GitHub © 2026 Zotonic