Commit f038e77 1 parent 513cda2 commit f038e77 Copy full SHA for f038e77
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 163
163
if ( method === 'OPTIONS' ) {
164
164
// preflight
165
165
headers . push ( configureOrigin ( options , req ) ) ;
166
- headers . push ( configureCredentials ( options , req ) ) ;
167
- headers . push ( configureMethods ( options , req ) ) ;
166
+ headers . push ( configureCredentials ( options ) )
167
+ headers . push ( configureMethods ( options ) )
168
168
headers . push ( configureAllowedHeaders ( options , req ) ) ;
169
- headers . push ( configureMaxAge ( options , req ) ) ;
170
- headers . push ( configureExposedHeaders ( options , req ) ) ;
169
+ headers . push ( configureMaxAge ( options ) )
170
+ headers . push ( configureExposedHeaders ( options ) )
171
171
applyHeaders ( headers , res ) ;
172
172
173
173
if ( options . preflightContinue ) {
182
182
} else {
183
183
// actual response
184
184
headers . push ( configureOrigin ( options , req ) ) ;
185
- headers . push ( configureCredentials ( options , req ) ) ;
186
- headers . push ( configureExposedHeaders ( options , req ) ) ;
185
+ headers . push ( configureCredentials ( options ) )
186
+ headers . push ( configureExposedHeaders ( options ) )
187
187
applyHeaders ( headers , res ) ;
188
188
next ( ) ;
189
189
}
You can’t perform that action at this time.
0 commit comments