mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-27 07:45:41 +00:00
test config
This commit is contained in:
@@ -257,16 +257,16 @@ function mergeCORSHeader(reqHeader,originHeader){
|
||||
targetObj["access-control-allow-headers"] = reqHeader['access-control-request-headers'] || "-___-||";
|
||||
|
||||
//
|
||||
targetObj["Transfer-Encoding"] = "chunked";
|
||||
// targetObj["Transfer-Encoding"] = "chunked";
|
||||
|
||||
// Disable caching
|
||||
// If the response status is 304 not modified, the data event of response will not emmit
|
||||
targetObj["Cache-Control"] = "no-cache, no-store, must-revalidate";
|
||||
targetObj["Pragma"] = "no-cache";
|
||||
targetObj["Expires"] = 0;
|
||||
//
|
||||
targetObj["server"] = "anyproxy server";
|
||||
targetObj["x-powered-by"] = "Alipay-ct-wd";
|
||||
// // Disable caching
|
||||
// // If the response status is 304 not modified, the data event of response will not emmit
|
||||
// targetObj["Cache-Control"] = "no-cache, no-store, must-revalidate";
|
||||
// targetObj["Pragma"] = "no-cache";
|
||||
// targetObj["Expires"] = 0;
|
||||
// //
|
||||
// targetObj["server"] = "anyproxy server";
|
||||
// targetObj["x-powered-by"] = "Alipay-ct-wd";
|
||||
|
||||
return targetObj;
|
||||
}
|
||||
|
Reference in New Issue
Block a user