Commit fd9b3a97 by 杨树贤

跨域问题

parent c2778533
Showing with 11 additions and 1 deletions
......@@ -12,6 +12,16 @@ return [
'BaseUrl' => env('BaseUrl', ''),
'GoodsServerUrl' => env('GOODS_SERVER_URL', ''),
'allow_origin' => [
'http://goods.sensorhunt.cc',
'http://search.sensorhunt.cc',
'http://home.sensorhunt.cc',
'http://www.sensorhunt.cc',
'http://item.sensorhunt.cc',
'http://goods.sensorhunt.com',
'http://search.sensorhunt.com',
'http://home.sensorhunt.com',
'http://item.sensorhunt.com',
'http://www.sensorhunt.com',
],
'language' => [
'',
......
......@@ -18,7 +18,7 @@ $router->addRoute(['GET', 'POST'], '/', function () use ($router) {
$router->addRoute(['GET', 'POST'], '/test', 'CheckInController@test');
//第一个版本不需要登陆,所以不走中间件
$router->group(['middleware' => []], function () use ($router) {
$router->group(['middleware' => ['web']], function () use ($router) {
$router->addRoute(['GET', 'POST'], '/case/list', 'CaseController@index');
$router->addRoute(['GET', 'POST'], '/case/info', 'CaseController@show');
$router->addRoute(['GET', 'POST'], '/faq/list', 'FaqController@index');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment