webman/cors 跨域组件
This commit is contained in:
parent
b7da43c9fb
commit
3c5778aa47
@ -40,7 +40,8 @@
|
||||
"illuminate/redis": "^10.48",
|
||||
"symfony/var-dumper": "^6.4",
|
||||
"webman/think-orm": "^1.1",
|
||||
"phpoffice/phpspreadsheet": "^3.6"
|
||||
"phpoffice/phpspreadsheet": "^3.6",
|
||||
"webman/cors": "^1.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-event": "For better performance. "
|
||||
|
32
composer.lock
generated
32
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "69fc720415852f55d5319c4ab078fb79",
|
||||
"content-hash": "2c1b8b0e9c047637f20d3f84ec8deb36",
|
||||
"packages": [
|
||||
{
|
||||
"name": "brick/math",
|
||||
@ -3955,6 +3955,36 @@
|
||||
},
|
||||
"time": "2022-08-18T12:14:59+00:00"
|
||||
},
|
||||
{
|
||||
"name": "webman/cors",
|
||||
"version": "v1.0.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/webman-php/cors.git",
|
||||
"reference": "a5396634fd2ee4e7b15abba0bab45f28e1c1ad02"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/webman-php/cors/zipball/a5396634fd2ee4e7b15abba0bab45f28e1c1ad02",
|
||||
"reference": "a5396634fd2ee4e7b15abba0bab45f28e1c1ad02",
|
||||
"shasum": ""
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Webman\\Cors\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/webman-php/cors/issues",
|
||||
"source": "https://github.com/webman-php/cors/tree/v1.0.1"
|
||||
},
|
||||
"time": "2022-11-05T11:16:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "webman/event",
|
||||
"version": "v1.0.5",
|
||||
|
4
config/plugin/webman/cors/app.php
Normal file
4
config/plugin/webman/cors/app.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
return [
|
||||
'enable' => true,
|
||||
];
|
19
config/plugin/webman/cors/middleware.php
Normal file
19
config/plugin/webman/cors/middleware.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* This file is part of webman.
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* For full copyright and license information, please see the MIT-LICENSE.txt
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @author walkor<walkor@workerman.net>
|
||||
* @copyright walkor<walkor@workerman.net>
|
||||
* @link http://www.workerman.net/
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
|
||||
return [
|
||||
'' => [
|
||||
\Webman\Cors\CORS::class
|
||||
]
|
||||
];
|
Loading…
Reference in New Issue
Block a user