Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8aec52f

Browse files
srt32keithamus
andauthored
Update src/auto-check-element.ts
Co-authored-by: Keith Cirkel <[email protected]>
1 parent 9482b6b commit 8aec52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auto-check-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async function check(autoCheckElement: AutoCheckElement) {
267267
body.append(csrfField, csrf)
268268
body.append('value', input.value)
269269
} else {
270-
url = new URL(src);
270+
url = new URL(src, window.location.origin);
271271
url.search = new URLSearchParams({ value: input.value }).toString();
272272
}
273273

0 commit comments

Comments
 (0)