forked from MarseyWorld/MarseyWorld
remove unnecessary xhr.withCredentials
parent
af4b262c7d
commit
07b534dee2
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue