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

Method getHeaders

wxapp/nice.js:155–171  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

153 }
154
155 getHeaders(extra = {}) {
156 return {
157 "User-Agent": USER_AGENT,
158 "Referer": `https://servicewechat.com/${MINI_APP_ID}/${PAGE_VERSION}/page-frame.html`,
159 "Accept": "application/json, text/plain, */*",
160 "Content-Type": "application/json",
161 "VERSION": "2022072802",
162 "brand": "devtools",
163 "model": "Windows",
164 "platform": "windows",
165 "system": "Windows 10",
166 "deviceOrientation": "portrait",
167 "version": "8.0.5",
168 "size": "414,896",
169 ...extra,
170 };
171 }
172
173 buildPayload(data = {}) {
174 return {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected