@tuya-sat/micro-dev-proxy 2.2.16 → 2.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appProxy.js +1 -1
- package/package.json +1 -1
package/dist/appProxy.js
CHANGED
|
@@ -69,7 +69,7 @@ class AppProxy {
|
|
|
69
69
|
//获取csrf
|
|
70
70
|
getCsrf() {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
yield (0, csrf_1.default)(this.target)
|
|
72
|
+
yield (0, csrf_1.default)(new url_1.URL("/login", this.target).href)
|
|
73
73
|
.then(([cookie, value]) => {
|
|
74
74
|
this.csrfCookie.setValue(cookie);
|
|
75
75
|
this.csrfValue.setValue(value);
|