|
|
||
|---|---|---|
| .. | ||
| .github | ||
| lang | ||
| models | ||
| providers | ||
| updates | ||
| .gitignore | ||
| CHANGELOG.md | ||
| LICENSE | ||
| Plugin.php | ||
| README.md | ||
| composer.json | ||
README.md
CORS Plugin
This plugin provides a simple CORS support your for OctoberCMS implementing the barryvdh/laravel-cors.
Installation
From OctoberCMS
To install from OctoberCMS you can access the plugin page or search for CORS in your OctoberCMS Dashboard and install the RLuders.CORS Plugin.
From repository
- Clone this repository:
$ git clone https://github.com/rluders/oc-cors-plugin.git plugins/rluders/cors
- Install the composer dependencies:
$ cd plugins/rluders/cors
$ composer install
-
Configure it on your OctoberCMS Backend.
-
Use it on your
route.php
<?php
Route::group(['prefix' => 'api/e1', 'middleware' => ['\Barryvdh\Cors\HandleCors']], function(){
// routes here
});
LICENSE
MIT