pinokiod 3.8.20 → 3.8.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/caddy.js +21 -5
- package/package.json +1 -1
package/kernel/bin/caddy.js
CHANGED
|
@@ -57,6 +57,12 @@ class Caddy {
|
|
|
57
57
|
{
|
|
58
58
|
"match": [{ "method": ["OPTIONS"] }],
|
|
59
59
|
"handle": [
|
|
60
|
+
{
|
|
61
|
+
"handler": "request_header",
|
|
62
|
+
"set": {
|
|
63
|
+
"Origin": ["http://127.0.0.1"]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
60
66
|
{
|
|
61
67
|
"handler": "headers",
|
|
62
68
|
"response": {
|
|
@@ -99,7 +105,9 @@ class Caddy {
|
|
|
99
105
|
"handle": [
|
|
100
106
|
{
|
|
101
107
|
"handler": "request_header",
|
|
102
|
-
"
|
|
108
|
+
"set": {
|
|
109
|
+
"Origin": ["http://127.0.0.1"]
|
|
110
|
+
}
|
|
103
111
|
},
|
|
104
112
|
{
|
|
105
113
|
"handler": "reverse_proxy",
|
|
@@ -123,7 +131,9 @@ class Caddy {
|
|
|
123
131
|
"handle": [
|
|
124
132
|
{
|
|
125
133
|
"handler": "request_header",
|
|
126
|
-
"
|
|
134
|
+
"set": {
|
|
135
|
+
"Origin": ["http://127.0.0.1"]
|
|
136
|
+
}
|
|
127
137
|
},
|
|
128
138
|
{
|
|
129
139
|
"handler": "reverse_proxy",
|
|
@@ -147,7 +157,9 @@ class Caddy {
|
|
|
147
157
|
"handle": [
|
|
148
158
|
{
|
|
149
159
|
"handler": "request_header",
|
|
150
|
-
"
|
|
160
|
+
"set": {
|
|
161
|
+
"Origin": ["http://127.0.0.1"]
|
|
162
|
+
}
|
|
151
163
|
},
|
|
152
164
|
{
|
|
153
165
|
"handler": "reverse_proxy",
|
|
@@ -171,7 +183,9 @@ class Caddy {
|
|
|
171
183
|
"handle": [
|
|
172
184
|
{
|
|
173
185
|
"handler": "request_header",
|
|
174
|
-
"
|
|
186
|
+
"set": {
|
|
187
|
+
"Origin": ["http://127.0.0.1"]
|
|
188
|
+
}
|
|
175
189
|
},
|
|
176
190
|
{
|
|
177
191
|
"handler": "reverse_proxy",
|
|
@@ -195,7 +209,9 @@ class Caddy {
|
|
|
195
209
|
"handle": [
|
|
196
210
|
{
|
|
197
211
|
"handler": "request_header",
|
|
198
|
-
"
|
|
212
|
+
"set": {
|
|
213
|
+
"Origin": ["http://127.0.0.1"]
|
|
214
|
+
}
|
|
199
215
|
},
|
|
200
216
|
{
|
|
201
217
|
"handler": "reverse_proxy",
|