diff --git a/LocalServer/app.js b/LocalServer/app.js index 4fbb2303c049ea520460d069ae49a4aa1a3bbc14..14dbdf4a9321b06d6a13353ab5624b6eb4be60c5 100644 --- a/LocalServer/app.js +++ b/LocalServer/app.js @@ -35,7 +35,7 @@ appA.get('/api/echo', (req, res) => { res.json({ status: 'success', port: 8080, - message: '请求成功', + message: 'Request successful', received: req.query, }); }); @@ -45,7 +45,7 @@ appA.post('/api/setCookies', (req, res) => { const { name, value } = req.body; if (!name || !value) { - return res.status(400).json({ message: 'Cookie名称和值不能为空' }); + return res.status(400).json({ message: 'The cookie name and value cannot be empty.' }); } res.cookie(name, value, { @@ -56,7 +56,7 @@ appA.post('/api/setCookies', (req, res) => { }); res.json({ - message: 'a.com域名已设置cookie', + message: 'a.com domain has set cookies.', cookie: { name, value } }); }); @@ -74,9 +74,9 @@ appB.use(cors({ // [End CORS_configuration] appB.post('/api/getCookies', (req, res) => { - console.log('请求携带的 Cookie:', req.cookies); + console.log('请求携带的 Cookie: ', req.cookies); res.json({ - message: 'b.com域名已接收到cookie', + message: 'b.com domain has received the cookie.', cookies: req.cookies }); }); @@ -88,7 +88,7 @@ appC.get('/api/data', (req, res) => { res.json({ status: 'success', port: 8080, - message: '请求成功', + message: 'Request successful', received: req.query, }); }); diff --git a/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.28401938.css b/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.f93a1e61.css similarity index 52% rename from LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.28401938.css rename to LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.f93a1e61.css index 64ca0da1744d8457658e520b0a8972e40cf357f6..1f958e08047fcf8ec978f3bb285092b772dd11ef 100644 --- a/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.28401938.css +++ b/LocalServer/web/CookiesSettingsA/dist/css/CookiesSettingsA.f93a1e61.css @@ -1 +1 @@ -.container[data-v-1fdc8d89]{padding:16px 16px 32px;max-width:750px;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-1fdc8d89]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-1fdc8d89]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-1fdc8d89]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-1fdc8d89]{border:1px solid #42b983}.error[data-v-1fdc8d89]{border:1px solid #faa;color:#f44}.btn[data-v-1fdc8d89]{display:inline-block;width:100%;height:40px;border-radius:20px;background-color:#0a59f7;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file +.container[data-v-0a0d8cc2]{padding:16px 16px 32px;max-width:750px;display:flex;flex-direction:column;justify-content:space-between;overflow-y:auto}.section .content[data-v-0a0d8cc2]{font-size:16px;line-height:1.6;word-wrap:break-word}.logArea[data-v-0a0d8cc2]{margin:16px 0 32px;box-sizing:border-box;padding:16px 16px;width:100%;min-height:200px;max-height:350px;overflow-y:auto;border-radius:20px;background-color:#fff;box-shadow:0 0 4px rgba(0,0,0,.1)}.result[data-v-0a0d8cc2]{margin-top:15px;padding:15px;border-radius:4px;background-color:#f8f9fa;white-space:pre-wrap;font-family:monospace;overflow-x:auto}.success[data-v-0a0d8cc2]{border:1px solid #42b983}.error[data-v-0a0d8cc2]{border:1px solid #faa;color:#f44}.btn[data-v-0a0d8cc2]{display:inline-block;width:100%;height:40px;border-radius:20px;background-color:#0a59f7;color:#f1f3f5;text-align:center;line-height:40px}*{box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none}*,body{margin:0;padding:0}body{line-height:1.6;color:#333;background-color:#f1f3f5}a{text-decoration:none} \ No newline at end of file diff --git a/LocalServer/web/CookiesSettingsA/dist/index.html b/LocalServer/web/CookiesSettingsA/dist/index.html index 83fe5a42f441f4e6e19ce07984cfa405d49fb391..7723ed726e0fdb01bc3b6c4390b9701ea2fb15a6 100644 --- a/LocalServer/web/CookiesSettingsA/dist/index.html +++ b/LocalServer/web/CookiesSettingsA/dist/index.html @@ -1 +1 @@ -
f?z(e,s,i,!0,!1,p):A(t,n,r,s,i,a,l,c,p)},H=(e,t,n,r,s,i,a,l,c)=>{let u=0;const f=t.length;let p=e.length-1,d=f-1;while(u<=p&&u<=d){const r=e[u],o=t[u]=c?an(t[u]):sn(t[u]);if(!Xt(r,o))break;_(r,o,n,null,s,i,a,l,c),u++}while(u<=p&&u<=d){const r=e[p],o=t[d]=c?an(t[d]):sn(t[d]);if(!Xt(r,o))break;_(r,o,n,null,s,i,a,l,c),p--,d--}if(u>p){if(u<=d){const e=d+1,o=e(D(t,(t,r)=>{n&&v(t)?e[r]=o(t,n):e[r]=t},{allOwnKeys:r}),e),W=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),V=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},H=(e,t,n,r)=>{let o,s,a;const l={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),s=o.length;while(s-- >0)a=o[s],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},G=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},K=e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},Y=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&i(Uint8Array)),q=(e,t)=>{const n=e&&e[a],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},X=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},z=u("HTMLFormElement"),J=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Q=u("RegExp"),ee=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};D(n,(n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)}),Object.defineProperties(e,r)},te=e=>{ee(e,(t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},ne=(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},re=()=>{},oe=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t;function se(e){return!!(e&&v(e.append)&&"FormData"===e[l]&&e[a])}const ie=e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(h(e))return e;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return D(e,(e,t)=>{const s=n(e,r+1);!d(s)&&(o[t]=s)}),t[r]=void 0,o}}return e};return n(e,0)},ae=u("AsyncFunction"),le=e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),ce=((e,t)=>e?setImmediate:t?((e,t)=>(M.addEventListener("message",({source:n,data:r})=>{n===M&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),M.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,v(M.postMessage)),ue="undefined"!==typeof queueMicrotask?queueMicrotask.bind(M):"undefined"!==typeof process&&process.nextTick||ce,fe=e=>null!=e&&v(e[a]);var pe={isArray:p,isArrayBuffer:m,isBuffer:h,isFormData:x,isArrayBufferView:g,isString:_,isNumber:y,isBoolean:E,isObject:b,isPlainObject:O,isEmptyObject:S,isReadableStream:L,isRequest:P,isResponse:k,isHeaders:I,isUndefined:d,isDate:w,isFile:T,isBlob:N,isRegExp:Q,isFunction:v,isStream:R,isURLSearchParams:A,isTypedArray:Y,isFileList:C,forEach:D,merge:$,extend:B,trim:F,stripBOM:W,inherits:V,toFlatObject:H,kindOf:c,kindOfTest:u,endsWith:G,toArray:K,forEachEntry:q,matchAll:X,isHTMLForm:z,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:ee,freezeMethods:te,toObjectSet:ne,toCamelCase:J,noop:re,toFiniteNumber:oe,findKey:U,global:M,isContextDefined:j,isSpecCompliantForm:se,toJSONObject:ie,isAsyncFn:ae,isThenable:le,setImmediate:ce,asap:ue,isIterable:fe};function de(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}pe.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const he=de.prototype,me={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{me[e]={value:e}}),Object.defineProperties(de,me),Object.defineProperty(he,"isAxiosError",{value:!0}),de.from=(e,t,n,r,o,s)=>{const i=Object.create(he);pe.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return de.call(i,a,l,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};var ge=de,_e=null;function ve(e){return pe.isPlainObject(e)||pe.isArray(e)}function ye(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map(function(e,t){return e=ye(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}function Ee(e){return pe.isArray(e)&&!e.some(ve)}const Oe=pe.toFlatObject(pe,{},null,function(e){return/^is[A-Z]/.test(e)});function Se(e,t,n){if(!pe.isObject(e))throw new TypeError("target must be an object");t=t||new(_e||FormData),n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!pe.isUndefined(t[e])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,l=a&&pe.isSpecCompliantForm(t);if(!pe.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(pe.isDate(e))return e.toISOString();if(pe.isBoolean(e))return e.toString();if(!l&&pe.isBlob(e))throw new ge("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(e)||pe.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"===typeof e)if(pe.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(pe.isArray(e)&&Ee(e)||(pe.isFileList(e)||pe.endsWith(n,"[]"))&&(a=pe.toArray(e)))return n=ye(n),a.forEach(function(e,r){!pe.isUndefined(e)&&null!==e&&t.append(!0===i?be([n],r,s):null===i?n:n+"[]",c(e))}),!1;return!!ve(e)||(t.append(be(o,n,s),c(e)),!1)}const f=[],p=Object.assign(Oe,{defaultVisitor:u,convertValue:c,isVisitable:ve});function d(e,n){if(!pe.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),pe.forEach(e,function(e,r){const s=!(pe.isUndefined(e)||null===e)&&o.call(t,e,pe.isString(r)?r.trim():r,n,p);!0===s&&d(e,n?n.concat(r):[r])}),f.pop()}}if(!pe.isObject(e))throw new TypeError("data must be an object");return d(e),t}var we=Se;function Te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ne(e,t){this._pairs=[],e&&we(e,this,t)}const Ce=Ne.prototype;Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Te)}:Te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Re=Ne;function xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ae(e,t,n){if(!t)return e;const r=n&&n.encode||xe;pe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):pe.isURLSearchParams(t)?t.toString():new Re(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}class Le{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,function(t){null!==t&&e(t)})}}var Pe=Le,ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ie="undefined"!==typeof URLSearchParams?URLSearchParams:Re,Fe="undefined"!==typeof FormData?FormData:null,De="undefined"!==typeof Blob?Blob:null,Ue={isBrowser:!0,classes:{URLSearchParams:Ie,FormData:Fe,Blob:De},protocols:["http","https","file","blob","url","data"]};const Me="undefined"!==typeof window&&"undefined"!==typeof document,je="object"===typeof navigator&&navigator||void 0,$e=Me&&(!je||["ReactNative","NativeScript","NS"].indexOf(je.product)<0),Be=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),We=Me&&window.location.href||"http://localhost";var Ve={...r,...Ue};function He(e,t){return we(e,new Ve.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ve.isNode&&pe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Ge(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function Ke(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r