hhm_backend_03_2023/plugins/rluders/cors
Shohrat cff2ae027f from server 2023-09-04 17:34:14 +05:00
..
.github from server 2023-09-04 17:34:14 +05:00
lang from server 2023-09-04 17:34:14 +05:00
models from server 2023-09-04 17:34:14 +05:00
providers from server 2023-09-04 17:34:14 +05:00
updates from server 2023-09-04 17:34:14 +05:00
.gitignore from server 2023-09-04 17:34:14 +05:00
CHANGELOG.md from server 2023-09-04 17:34:14 +05:00
LICENSE from server 2023-09-04 17:34:14 +05:00
Plugin.php from server 2023-09-04 17:34:14 +05:00
README.md from server 2023-09-04 17:34:14 +05:00
composer.json from server 2023-09-04 17:34:14 +05: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