For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/rspeedy.server.headers.md.
This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/rspeedy > Server > headers

Server.headers property

Adds headers to all responses.

Signature:

headers?: Record<string, string | string[]> | undefined;

Default Value

undefined

Example

import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  server: {
    headers: {
      'Access-Control-Allow-Origin': '**',
    },
  },
})