rluders/cors

CORS plugin for OctoberCMS

Fund package maintenance!
rluders
Patreon

Installs: 520

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-03-29 04:32:57 UTC


README

68747470733a2f2f696d672e736869656c64732e696f2f62616467652f57696e746572434d532d506c7567696e2d2532334545373230332e737667 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f537570706f72745f6f6e2d50617472656f6e2d677265656e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726c75646572732f6f632d636f72732d706c7567696e2e737667

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