質問編集履歴
1
初期のソースコードを記載しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,4 +38,46 @@
|
|
38
38
|
|
39
39
|
@vue/cli 4.5.9
|
40
40
|
|
41
|
-
Laravel Framework 8.30.1
|
41
|
+
Laravel Framework 8.30.1
|
42
|
+
|
43
|
+
ブラウザはchromeを使っております
|
44
|
+
|
45
|
+
### 補足情報
|
46
|
+
|
47
|
+
configディレクトリ直下cors.phpファイルです。
|
48
|
+
初期状態では以下のようになっております
|
49
|
+
|
50
|
+
<?php
|
51
|
+
|
52
|
+
return [
|
53
|
+
|
54
|
+
/*
|
55
|
+
|--------------------------------------------------------------------------
|
56
|
+
| Cross-Origin Resource Sharing (CORS) Configuration
|
57
|
+
|--------------------------------------------------------------------------
|
58
|
+
|
|
59
|
+
| Here you may configure your settings for cross-origin resource sharing
|
60
|
+
| or "CORS". This determines what cross-origin operations may execute
|
61
|
+
| in web browsers. You are free to adjust these settings as needed.
|
62
|
+
|
|
63
|
+
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
64
|
+
|
|
65
|
+
*/
|
66
|
+
|
67
|
+
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
68
|
+
|
69
|
+
'allowed_methods' => ['*'],
|
70
|
+
|
71
|
+
'allowed_origins' => ['*'],
|
72
|
+
|
73
|
+
'allowed_origins_patterns' => [],
|
74
|
+
|
75
|
+
'allowed_headers' => ['*'],
|
76
|
+
|
77
|
+
'exposed_headers' => [],
|
78
|
+
|
79
|
+
'max_age' => 0,
|
80
|
+
|
81
|
+
'supports_credentials' => false,
|
82
|
+
|
83
|
+
];
|