sitegeist/offcors

CORS Middleware for Neos-CMS / Flow-Framework

Installs: 60 994

Dependents: 0

Suggesters: 1

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 0

Type:neos-package

v1.0.2 2023-04-04 12:57 UTC

This package is auto-updated.

Last update: 2024-12-04 16:36:20 UTC


README

CORS Middleware for Neos-CMS / Flow-Framework

Very basic (for now) CORS implementation for Neos CMS

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer https://www.sitegeist.de.

Configuration

Sitegeist:
  OffCORS:
    # allow credentials via cors (bool)
    allowCredentials: false
    # allowed cors origins (array or csv-string)
    allowOrigins: "*"
    # allowed cors methods (array or csv-string)
    allowMethods: "GET"
    # allowed cors headers (array or csv-string)
    allowHeaders: ""
    # exposed cors headers (array or csv-string)
    exposeHeaders: ""
    # max age cors informations (int)
    maxAge: 86400

Installation

Sitegeist.OffCORS is available via packagist. Just run composer require sitegeist/offcors to install it. We use semantic-versioning so every breaking change will increase the major-version number.

Contribution

We will gladly accept contributions. Please send us pull requests.