兼容异常,并给出示例
This commit is contained in:
		| @@ -131,8 +131,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { | ||||
|       headers['Content-Type'] = 'text/html'; | ||||
|       headers.cookie = getAliexpressCookie(); | ||||
|       const {_m_h5_c, _m_h5_tk} = cookie2Obj(headers.cookie) | ||||
|       const {mtopConfig = {appKey: "12574478"}} = window | ||||
|       const {appKey = mtopConfig.appKey, formData} = request | ||||
|       const {appKey, formData} = request | ||||
|       const {sign, t} = getSign(_m_h5_c || _m_h5_tk, appKey, formData) | ||||
|       const url = new URL(request.url) | ||||
|       let params = new URLSearchParams(url.search); | ||||
| @@ -253,7 +252,7 @@ function getSheinCookie() { | ||||
|  | ||||
|  | ||||
| function getAliexpressCookie() { | ||||
|   const url = new URL("https://www.aliexpress.com/"); | ||||
|   const url = new URL("https://csp.aliexpress.com/"); | ||||
|   let cStr = ''; | ||||
|   chrome.cookies.getAll({domain: url.host}, (cookie) => { | ||||
|     cookie.map((c) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user