rluders / wn-cors-plugin

Cross-Origin Resource Sharing (CORS) for WinterCMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORS Plugin

This plugin provides a simple CORS support your for WinterCMS implementing the barryvdh/laravel-cors.

Installation

  1. Use the composer
$ composer require rluders/cors
  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 WinterCMS

License:MIT License


Languages

Language:PHP 99.3%Language:HTML 0.7%