Skip to content

Cross-Origin Resource Sharing (CORS) for OctoberCMS

License

Notifications You must be signed in to change notification settings

Incremental92/oc-cors-plugin

 
 

Repository files navigation

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

About

Cross-Origin Resource Sharing (CORS) for OctoberCMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.3%
  • HTML 0.7%