File tree 2 files changed +3
-12
lines changed
2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -2131,7 +2131,8 @@ class Server {
2131
2131
middleware : this . setHeaders . bind ( this ) ,
2132
2132
} ) ;
2133
2133
}
2134
- if ( this . options . optionsMethod ) {
2134
+
2135
+ {
2135
2136
/**
2136
2137
*
2137
2138
* @param {Request } req
@@ -2151,7 +2152,7 @@ class Server {
2151
2152
} ;
2152
2153
2153
2154
middlewares . push ( {
2154
- name : "options-request-response " ,
2155
+ name : "options-middleware " ,
2155
2156
path : "*" ,
2156
2157
middleware : optionsRequestResponseMiddleware ,
2157
2158
} ) ;
Original file line number Diff line number Diff line change 458
458
"description" : " Allows to set custom headers on response." ,
459
459
"link" : " https://webpack.js.org/configuration/dev-server/#devserverheaders"
460
460
},
461
- "OptionsMethod" : {
462
- "type" : " boolean" ,
463
- "description" : " Response with 204 httpCode when receive an OPTIONS request" ,
464
- "cli" : {
465
- "exclude" : true
466
- }
467
- },
468
461
"HistoryApiFallback" : {
469
462
"anyOf" : [
470
463
{
1178
1171
"headers" : {
1179
1172
"$ref" : " #/definitions/Headers"
1180
1173
},
1181
- "optionsMethod" : {
1182
- "$ref" : " #/definitions/OptionsMethod"
1183
- },
1184
1174
"historyApiFallback" : {
1185
1175
"$ref" : " #/definitions/HistoryApiFallback"
1186
1176
},
You can’t perform that action at this time.
0 commit comments