8000 GitHub - stratevision/plus-cors-plugin: Cross-Origin Resource Sharing (CORS) for OctoberCMS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

stratevision/plus-cors-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 Sv.CORS Plugin.

From repository

  1. Clone this repository:

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

  1. Install the composer dependencies:

$ cd plugins/sv/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%
0