papimod/cors

Module Papi

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/papimod/cors

v1.0.0 2025-12-08 18:42 UTC

This package is auto-updated.

Last update: 2025-12-08 18:46:23 UTC


README

Description

Help setting up cross-origin resource sharing in your papi.

This module is based on the official tutorial.

Configuration

CORS_PRIORITY (.ENV)

Required No
Type int
Description Set the priority of the middleware
Default 128

CORS_ORIGIN (.ENV)

Required No
Type string
Description Set Access-Control-Allow-Origin
Default *

CORS_HEADERS (.ENV)

Required No
Type string
Description Set Access-Control-Allow-Headers
Default *

CORS_METHODS (.ENV)

Required No
Type string
Description Set Access-Control-Allow-Methods
Default GET, POST, PUT, PATCH, DELETE, OPTIONS, HEAD