-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
HTMX ajax requests do not include the X-Requested-With: XMLHttpRequest header property, this can have some unforeseen consequences on endpoints that serve different responses when detecting an ajax request, for example /message/1/ can return a fully rendered site while an ajax request to /message/1/ might return just the message part.
While this is just one use case, I think it just makes sense that an Ajax request should be able to be recognized as such on the server, afaik there is no way to do this without the X-Requested-With header.
I am using django-htmx, v1.2.6 which uses htmx 2.0.7.
Metadata
Metadata
Assignees
Labels
No labels