Skip to content

Commit

Permalink
Add X-Current-Url header to every ajax request
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 committed Nov 5, 2024
1 parent a99a3ca commit 9b4e8a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/signalizejs/src/modules/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default async ({ resolve }, config) => {
try {
requestOptions.headers = {
'X-Requested-With': config?.requestedWithHeader ?? 'XMLHttpRequest',
'X-Current-Url': window.location.href,
Accept: config?.acceptHeader ?? '*',
...options.headers ?? {}
}
Expand Down

0 comments on commit 9b4e8a5

Please sign in to comment.