MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getHeaders

Method getHeaders

wxapp/fej.js:127–143  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

125 }
126
127 getHeaders(extra = {}) {
128 const headers = {
129 "User-Agent": USER_AGENT,
130 "Referer": `https://servicewechat.com/${MINI_APP_ID}/30/page-frame.html`,
131 "Accept": "*/*",
132 "Extra-Data": JSON.stringify({
133 sid: this.sessionId || "",
134 version: USER_VERSION,
135 clientType: "weapp-miniprogram",
136 client: "weapp",
137 bizEnv: "wsc",
138 }),
139 ...extra,
140 };
141 if (this.cookie) headers.Cookie = this.cookie;
142 return headers;
143 }
144
145 getBaseParams(params = {}) {
146 return {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected