Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix: payload is not sent
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Jul 23, 2024
1 parent 6d60936 commit e231815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/src/adshield/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const GetResourceToken = async (ScriptUrl: string) => {
const GetResourceTokenFromRemote = async (Body: string) => {
const XHR = await GM.xmlHttpRequest({
url: 'https://microshield.piquark6046.dev/token',
data: Body
data: Body,
method: 'POST'
})
if (XHR.status !== 200) {
throw new Error('Failed to fetch token!')
Expand Down

0 comments on commit e231815

Please sign in to comment.