承接 nelmio/cors-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

nelmio/cors-bundle

最新稳定版本:2.6.0

Composer 安装命令:

composer require nelmio/cors-bundle

包简介

Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application

README 文档

README

About

The NelmioCorsBundle allows you to send Cross-Origin Resource Sharing headers with ACL-style per-URL configuration.

Features

  • Handles CORS preflight OPTIONS requests
  • Adds CORS headers to your responses
  • Configured at the PHP/application level. This is convenient but it also means that any request serving static files and not going through Symfony will not have the CORS headers added, so if you need to serve CORS for static files you probably should rather configure these headers in your web server

Installation

Require the nelmio/cors-bundle package in your composer.json and update your dependencies:

composer require nelmio/cors-bundle

The bundle should be automatically enabled by Symfony Flex. If you don't use Flex, you'll need to enable it manually as explained in the docs.

Usage

See the documentation for usage instructions.

License

Released under the MIT License, see LICENSE.

统计信息

  • 总下载量: 89.24M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1936
  • 点击次数: 2
  • 依赖项目数: 163
  • 推荐数: 16

GitHub 信息

  • Stars: 1920
  • Watchers: 15
  • Forks: 109
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04