fix: use location.origin
This commit is contained in:
1 parent
48f9adce76
commit
63788009b4
1 file changed
+1
-1
@@ -37,7 +37,7 @@
|
|||||||
formData.append('images[]', image)
|
formData.append('images[]', image)
|
||||||
|
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`${buildBaseUrl(getInstance())}/pictrs/image?${new URLSearchParams({
|
`${window.location.origin}/cors/${getInstance()}/pictrs/image?${new URLSearchParams({
|
||||||
auth: $authData.token,
|
auth: $authData.token,
|
||||||
})}`,
|
})}`,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user