質問編集履歴
3
アクセスログ内容追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -131,3 +131,13 @@
|
|
131
131
|
|
132
132
|
|
133
133
|
```
|
134
|
+
|
135
|
+
nginx access log
|
136
|
+
|
137
|
+
```ここに言語を入力
|
138
|
+
|
139
|
+
"POST /linebot HTTP/1.1" 301 169 "-" "LineBotWebhook/2.0" "147.92.150.194"
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
```
|
2
情報追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -73,3 +73,61 @@
|
|
73
73
|
| | POST | linebot | generated::boq3z4jMhOpJ4MoA | App\Http\Controllers\LineBotController@postWebhook | App\Http\Middleware\EncryptCookies |
|
74
74
|
|
75
75
|
|
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
verifycsrftoken.php
|
80
|
+
|
81
|
+
```ここに言語を入力
|
82
|
+
|
83
|
+
<?php
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
namespace App\Http\Middleware;
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
class VerifyCsrfToken extends Middleware
|
96
|
+
|
97
|
+
{
|
98
|
+
|
99
|
+
/**
|
100
|
+
|
101
|
+
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
|
102
|
+
|
103
|
+
*
|
104
|
+
|
105
|
+
* @var bool
|
106
|
+
|
107
|
+
*/
|
108
|
+
|
109
|
+
protected $addHttpCookie = true;
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
/**
|
114
|
+
|
115
|
+
* The URIs that should be excluded from CSRF verification.
|
116
|
+
|
117
|
+
*
|
118
|
+
|
119
|
+
* @var array
|
120
|
+
|
121
|
+
*/
|
122
|
+
|
123
|
+
protected $except = [
|
124
|
+
|
125
|
+
'linebot'
|
126
|
+
|
127
|
+
];
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
```
|
1
書式改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Controller が読み込まれてくれません・・・
|
2
2
|
|
3
|
-
|
3
|
+
以下の状態で/linebot にアクセスしても postWebhookが走ってくれません
|
4
4
|
|
5
5
|
試したこと
|
6
6
|
|