claude-trello-cli 0.1.3 → 0.1.4
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/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78,6 +78,7 @@ async function apiFetch(path, options) {
|
|
|
78
78
|
...options,
|
|
79
79
|
headers: {
|
|
80
80
|
"Content-Type": "application/json",
|
|
81
|
+
Origin: serverUrl,
|
|
81
82
|
Cookie: cookie,
|
|
82
83
|
...options?.headers ?? {}
|
|
83
84
|
},
|
|
@@ -103,7 +104,10 @@ async function apiFetch(path, options) {
|
|
|
103
104
|
async function signIn(serverUrl, email, password2) {
|
|
104
105
|
const res = await fetch(`${serverUrl}/api/auth/sign-in/email`, {
|
|
105
106
|
method: "POST",
|
|
106
|
-
headers: {
|
|
107
|
+
headers: {
|
|
108
|
+
"Content-Type": "application/json",
|
|
109
|
+
Origin: serverUrl
|
|
110
|
+
},
|
|
107
111
|
body: JSON.stringify({ email, password: password2 }),
|
|
108
112
|
redirect: "manual"
|
|
109
113
|
});
|