fix create form and fix origin
This commit is contained in:
@@ -5,7 +5,7 @@ const getOrigin = () =>
|
|||||||
|
|
||||||
function prepareUrl(url) {
|
function prepareUrl(url) {
|
||||||
if (url.startsWith("http")) return url;
|
if (url.startsWith("http")) return url;
|
||||||
return `${getOrigin}/api/${url}`;
|
return `${getOrigin()}/api/${url}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRequest(method, url, headers, attempts, body, type) {
|
function handleRequest(method, url, headers, attempts, body, type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user