Skip to content

Commit

Permalink
🐛 Xhr withCredentials set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
soxft committed Aug 16, 2024
1 parent 5edeb09 commit 57a5e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/busuanzi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/busuanzi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

let bsz_send: Function = function () {
let xhr: XMLHttpRequest = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open("POST", api, true);

// set user identity
xhr.setRequestHeader("x-bsz-referer", window.location.href);
xhr.onreadystatechange = function () {
Expand Down

0 comments on commit 57a5e85

Please sign in to comment.