euskadi31/cors-service-provider
最新稳定版本:v1.0.2
Composer 安装命令:
composer require euskadi31/cors-service-provider
包简介
A CORS Service Provider for Silex 2.0
README 文档
README
The CorsServiceProvider provides CORS support as middleware for your silex 2.0 application. CORS allows you to make AJAX requests across domains. CORS uses OPTIONS requests to make preflight requests. Because silex doesn't have functionality for serving OPTIONS request by default, this service goes through all of your routes and generates the necessary OPTIONS routes.
Install
Add euskadi31/cors-service-provider to your composer.json:
% php composer.phar require euskadi31/cors-service-provider:~1.0
Usage
Configuration
<?php $app = new Silex\Application; $app->register(new \Euskadi31\Silex\Provider\CorsServiceProvider);
License
CorsServiceProvider is licensed under the MIT license.
统计信息
- 总下载量: 22.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-18