开启了多级控制器
不使用路由,按照.语法书写url。以下这样书写地址就是正常的
http://serverName/index.php/user.blog/index
但是,使用路由的时候报错
Route::get('user/blog','user.blog/index');
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.