Skip to content

Commit

Permalink
fix: http header update
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyoon committed Dec 23, 2023
1 parent 1f9121b commit 54fdb42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_API_URL=https://dev.q-box.site/api
VITE_API_URL=https://dev.q-box.site/api
8 changes: 1 addition & 7 deletions src/routes/(mono-column)/signup/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
await fetch("https://dev.q-box.site/api/emails", {
method: "post",
body: JSON.stringify(requestData),
header: {
"Content-Type": "application/json;charset=UTF-8",
},
}).then(async (response) => {
if (Response.status >= 200 && Response.status < 300) {
Expand All @@ -58,12 +55,9 @@
const requestData = {
key: code,
};
await fetch("https://dev.q-box.site/api/emails", {
await fetch( import.meta.env.VITE_API_URL + `/emails`, {
method: "post",
body: JSON.stringify(requestData),
header: {
"Content-Type": "application/json",
},
}).then(async (response) => {
if (Response.status >= 200 && Response.status < 300) {
console.log(`인증완료`);
Expand Down

0 comments on commit 54fdb42

Please sign in to comment.