This plugin provides a simple CORS support your for WinterCMS implementing the barryvdh/laravel-cors.
- Use the composer
$ composer require rluders/cors
-
Configure it on your OctoberCMS Backend.
-
Use it on your
route.php
<?php
Route::group(['prefix' => 'api/e1', 'middleware' => ['\Barryvdh\Cors\HandleCors']], function(){
// routes here
});
MIT