Browse Source

Add `X-Requested-With` header for ajax

pull/165/head
Jānis Skarnelis 3 years ago
parent
commit
c3472074dd
  1. 1
      src/Fancybox/plugins/Html/Html.js

1
src/Fancybox/plugins/Html/Html.js

@ -266,6 +266,7 @@ export class Html {
};
xhr.open("GET", slide.src);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.send(slide.ajax || null);
slide.xhr = xhr;

Loading…
Cancel
Save