rluders/cors

CORS plugin for OctoberCMS

Fund package maintenance!
rluders
Patreon

Installs: 606

Dependents: 1

Suggesters: 0

Security: 0

Stars: 11

Watchers: 3

Forks: 11

Open Issues: 2

Type:october-plugin

v1.0.6 2021-01-25 18:26 UTC

This package is auto-updated.

Last update: 2024-11-29 06:35:29 UTC


README

This plugin provides a simple CORS support your for WinterCMS implementing the barryvdh/laravel-cors.

Installation

  1. Use the composer
$ composer require rluders/cors
  1. Configure it on your OctoberCMS Backend.

  2. Use it on your route.php

<?php

Route::group(['prefix' => 'api/e1', 'middleware' => ['\Barryvdh\Cors\HandleCors']], function(){
    // routes here
});

LICENSE

MIT