Search by

marko / cors

markshust

CORS middleware and configuration for Marko Framework

Package info

github.com/marko-php/marko-cors

Type:marko-module

pkg:composer/marko/cors

Statistics

Installs: 6

Dependents: 1

Suggesters: 0

Stars: 0

0.11.0 2026-10-06 14:16 UTC

README

CORS middleware for Marko --- enables browser-based frontends and mobile apps to access your API by adding the correct HTTP headers automatically.

Installation

composer require marko/cors

Quick Example

The middleware registers itself globally, so preflights and cross-origin responses are handled as soon as you allow an origin:

CORS_ALLOWED_ORIGINS=https://app.example.com
CORS_PATHS=api/*

Documentation

Full usage, API reference, and examples: marko/cors