This plugin provides a simple CORS support your for OctoberCMS implementing the barryvdh/laravel-cors.
To install from OctoberCMS you can access the plugin page or search for CORS
in your OctoberCMS Dashboard and install the RLuders.CORS
Plugin.
- 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
});
MIT