avancement planning
This commit is contained in:
+6
-6
@@ -163,11 +163,11 @@
|
||||
if (method === 'OPTIONS') {
|
||||
// preflight
|
||||
headers.push(configureOrigin(options, req));
|
||||
headers.push(configureCredentials(options, req));
|
||||
headers.push(configureMethods(options, req));
|
||||
headers.push(configureCredentials(options))
|
||||
headers.push(configureMethods(options))
|
||||
headers.push(configureAllowedHeaders(options, req));
|
||||
headers.push(configureMaxAge(options, req));
|
||||
headers.push(configureExposedHeaders(options, req));
|
||||
headers.push(configureMaxAge(options))
|
||||
headers.push(configureExposedHeaders(options))
|
||||
applyHeaders(headers, res);
|
||||
|
||||
if (options.preflightContinue) {
|
||||
@@ -182,8 +182,8 @@
|
||||
} else {
|
||||
// actual response
|
||||
headers.push(configureOrigin(options, req));
|
||||
headers.push(configureCredentials(options, req));
|
||||
headers.push(configureExposedHeaders(options, req));
|
||||
headers.push(configureCredentials(options))
|
||||
headers.push(configureExposedHeaders(options))
|
||||
applyHeaders(headers, res);
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user