1 |
1 |
new file mode 100644
|
... |
... |
@@ -0,0 +1,7 @@
|
|
1 |
+htmx.defineExtension('ajax-header', {
|
|
2 |
+ onEvent: function (name, evt) {
|
|
3 |
+ if (name === "htmx:configRequest") {
|
|
4 |
+ evt.detail.headers['X-Requested-With'] = 'XMLHttpRequest';
|
|
5 |
+ }
|
|
6 |
+ }
|
|
7 |
+});
|
0 |
8 |
\ No newline at end of file
|