forked from rDrama/rDrama
1
0
Fork 0

remove unnecessary xhr.withCredentials

master
Aevann 2023-07-01 00:30:35 +03:00
parent af4b262c7d
commit 07b534dee2
2 changed files with 0 additions and 3 deletions

View File

@ -5,7 +5,6 @@ if (!is_pwa) {
document.getElementsByClassName('tooltip')[0].addEventListener('click', function(e) {
tt.hide()
const xhr = new XMLHttpRequest();
xhr.withCredentials=true;
xhr.open("POST", '/dismiss_mobile_tip', true);
xhr.setRequestHeader('xhr', 'xhr');
xhr.send();

View File

@ -88,7 +88,6 @@ function autoSuggestTitle() {
if (isValidURL && urlField.value.length > 0 && titleField.value === "") {
const x = new XMLHttpRequest();
x.withCredentials=true;
x.onreadystatechange = function() {
if (x.readyState == 4 && x.status == 200 && !titleField.value) {
@ -157,7 +156,6 @@ function submit(form) {
submitButton.disabled = true;
const xhr = new XMLHttpRequest();
xhr.withCredentials=true;
formData = new FormData(form);