coooors
This commit is contained in:
parent
8742ea5714
commit
74c741b537
@ -4,7 +4,7 @@ export const corsConfig = {
|
|||||||
"http://localhost:4444",
|
"http://localhost:4444",
|
||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
"https://www.imk.mk",
|
"https://www.imk.mk",
|
||||||
"https://imk.mk/",
|
"https://imk.mk",
|
||||||
// "https://www.placebo.mk",
|
// "https://www.placebo.mk",
|
||||||
// "https://placebo.mk",
|
// "https://placebo.mk",
|
||||||
"https://imkapi.oblak.solutions",
|
"https://imkapi.oblak.solutions",
|
||||||
@ -24,4 +24,7 @@ export const corsConfig = {
|
|||||||
"ph-session-id",
|
"ph-session-id",
|
||||||
"Access-Control-Allow-Origin",
|
"Access-Control-Allow-Origin",
|
||||||
],
|
],
|
||||||
|
exposedHeaders: ["Access-Control-Allow-Origin"],
|
||||||
|
preflightContinue: false,
|
||||||
|
optionsSuccessStatus: 204,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -8,6 +8,7 @@ const api = axios.create({
|
|||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json, text/plain, */*",
|
Accept: "application/json, text/plain, */*",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
"Access-Control-Allow-Origin": "https://imk.mk",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user