定制 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
  • 点击次数: 3
  • 依赖项目数: 163
  • 推荐数: 16

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固