File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 163163 if ( method === 'OPTIONS' ) {
164164 // preflight
165165 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 ) )
168168 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 ) )
171171 applyHeaders ( headers , res ) ;
172172
173173 if ( options . preflightContinue ) {
182182 } else {
183183 // actual response
184184 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 ) )
187187 applyHeaders ( headers , res ) ;
188188 next ( ) ;
189189 }
You can’t perform that action at this time.
0 commit comments