Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.27 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.27 KB

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

  1. Clone this repository:

$ git clone https://github.com/rluders/oc-cors-plugin.git plugins/rluders/cors

  1. Install the composer dependencies:

$ cd plugins/rluders/cors $ composer install

  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