定制 euskadi31/cors-service-provider 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

euskadi31/cors-service-provider

最新稳定版本:v1.0.2

Composer 安装命令:

composer require euskadi31/cors-service-provider

包简介

A CORS Service Provider for Silex 2.0

README 文档

README

Build Status SensioLabsInsight

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-18