> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haiqu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Collect Csp Report

> Collect a Content-Security-Policy violation report.

Accepts the ``application/csp-report`` and ``application/reports+json``
payloads emitted by browsers (and plain JSON), logs the report, and always
returns ``204 No Content``. Report ingestion never returns an error status,
to avoid noisy browser retries and to keep this unauthenticated path inert.

>>> POST /csp

Args:
    request: Incoming request carrying the browser's CSP report body.

Returns:
    Response: Empty ``204 No Content`` response.



## OpenAPI

````yaml https://api.haiqu.ai/openapi.json post /csp
openapi: 3.1.0
info:
  title: Haiqu API
  summary: Haiqu RESTful API service.
  description: Cloud service providing the access to Haiqu cloud runtime
  contact:
    name: Haiqu Inc.
    url: https://haiqu.ai/
    email: info@haiqu.ai
  version: 1.5.0
servers: []
security: []
paths:
  /csp:
    post:
      summary: Collect Csp Report
      description: >-
        Collect a Content-Security-Policy violation report.


        Accepts the ``application/csp-report`` and ``application/reports+json``

        payloads emitted by browsers (and plain JSON), logs the report, and
        always

        returns ``204 No Content``. Report ingestion never returns an error
        status,

        to avoid noisy browser retries and to keep this unauthenticated path
        inert.


        >>> POST /csp


        Args:
            request: Incoming request carrying the browser's CSP report body.

        Returns:
            Response: Empty ``204 No Content`` response.
      operationId: collect_csp_report_csp_post
      responses:
        '204':
          description: Successful Response

````