cors::crystal_ball:Supported(LaravelLumenPSR-15SwoftSlimThinkPHP)-PHP CORS(跨域资源共享)中间件

上传者: 42097369 | 上传时间: 2022-05-11 16:38:14 | 文件大小: 37KB | 文件类型: ZIP
CORS PHP CORS(跨域资源共享)中间件。 支持 Symfony支持 Yii2支持 使用 composer require medz/cors 例: use Medz \ Cors \ Cors ; $ cors = new Cors ( $ config ); // The $config :backhand_index_pointing_right: `config/cors.php` file. $ cors -> setRequest ( $ requestType , $ request ); // The $request is empty array or is `NULL` or $_REQUEST $ cors -> setResponse ( $ responseType , $ response ); // The $response is empty array. $ cors -> handle (); $ response = $ cors -> getResponse (); $requestType和$responseType都是

文件下载

资源详情

[{"title":"( 42 个子文件 37KB ) cors::crystal_ball:Supported(LaravelLumenPSR-15SwoftSlimThinkPHP)-PHP CORS(跨域资源共享)中间件","children":[{"title":"cors-master","children":[{"title":".gitignore <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"ResponseInterface.php <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"Swoft","children":[{"title":"CorsMiddleware.php <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"CorsBean.php <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"ThinkPHP","children":[{"title":"Hook","children":[{"title":"ResponseSend.php <span style='color:#111;'> 838B </span>","children":null,"spread":false},{"title":"AppInit.php <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false}],"spread":true},{"title":"Injecter.php <span style='color:#111;'> 737B </span>","children":null,"spread":false},{"title":"injection.php <span style='color:#111;'> 296B </span>","children":null,"spread":false}],"spread":true},{"title":"CorsInitException.php <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"Response.php <span style='color:#111;'> 4.67KB </span>","children":null,"spread":false},{"title":"Request.php <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"Slim","children":[{"title":"Cors.php <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"RequestInterface.php <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"CorsInterface.php <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Lumen","children":[{"title":"Middleware","children":[{"title":"Cors.php <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"ServiceProvider.php <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cors.php <span style='color:#111;'> 8.23KB </span>","children":null,"spread":false},{"title":"PSR","children":[{"title":"CorsMiddleware.php <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":false},{"title":"Laravel","children":[{"title":"Providers","children":[{"title":"LaravelServiceProvider.php <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"Middleware","children":[{"title":"ShouldGroup.php <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"Cors.php <span style='color:#111;'> 4.32KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".styleci.yml <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"composer.json <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"php.yml <span style='color:#111;'> 436B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"composer.lock <span style='color:#111;'> 64.27KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"phpunit.xml <span style='color:#111;'> 688B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"CorsTest.php <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"TestCase.php <span style='color:#111;'> 116B </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"laravel.php <span style='color:#111;'> 725B </span>","children":null,"spread":false},{"title":"lumen.php <span style='color:#111;'> 470B </span>","children":null,"spread":false}],"spread":true},{"title":".gitattributes <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"using-by-thinkphp.md <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"psr-15-support.md <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"using-by-lumen.md <span style='color:#111;'> 759B </span>","children":null,"spread":false},{"title":"using-by-slim.md <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"using-by-swoft.md <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"using-by-laravel.md <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明