tv_hhm/plugins/rluders/cors
root 679bbb1d51 all 2023-10-11 09:34:25 +00:00
..
.github all 2023-10-11 09:34:25 +00:00
lang all 2023-10-11 09:34:25 +00:00
models all 2023-10-11 09:34:25 +00:00
providers all 2023-10-11 09:34:25 +00:00
updates all 2023-10-11 09:34:25 +00:00
.gitignore all 2023-10-11 09:34:25 +00:00
CHANGELOG.md all 2023-10-11 09:34:25 +00:00
LICENSE all 2023-10-11 09:34:25 +00:00
Plugin.php all 2023-10-11 09:34:25 +00:00
README.md all 2023-10-11 09:34:25 +00:00
composer.json all 2023-10-11 09:34:25 +00:00

README.md

CORS Plugin

Known Vulnerabilities

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