|
|
@@ -536,10 +536,10 @@ class BuyhouseController extends WebBaseController
|
|
|
*/
|
|
|
public function upload(Request $request)
|
|
|
{
|
|
|
- header('Access-Control-Allow-Origin:*');
|
|
|
- header('Access-Control-Allow-Methods:GET,POST,PUT,DELETE');
|
|
|
- header('Access-Control-Allow-Headers:Origin, Content-Type, Cookie, Accept, X-CSRF-TOKEN');
|
|
|
- header('Access-Control-Allow-Credentials:true');
|
|
|
+// header('Access-Control-Allow-Origin:*');
|
|
|
+// header('Access-Control-Allow-Methods:GET,POST,PUT,DELETE');
|
|
|
+// header('Access-Control-Allow-Headers:Origin, Content-Type, Cookie, Accept, X-CSRF-TOKEN');
|
|
|
+// header('Access-Control-Allow-Credentials:true');
|
|
|
|
|
|
$file = $request->file('file');
|
|
|
if ($file->isValid()) { //判断文件是否存在
|