diff --git a/html/utils.js b/html/utils.js
index e608831..bf2fb8c 100644
--- a/html/utils.js
+++ b/html/utils.js
@@ -15,11 +15,12 @@ export const fetchNui = async (evName, data, mockData = null) => {
const resourceName = window.GetParentResourceName();
- const rawResp = await fetch(`https://cfx-nui-${resourceName}/${evName}`, {
+ const rawResp = await fetch(`https://${resourceName}/${evName}`, {
body: JSON.stringify(data),
headers: {
"Content-Type": "application/json; charset=UTF8",
},
+ method: "POST",
});
return await rawResp.json();