Is there a simple way in flask to check if the request is ajax from view? Just like in django, its as easy as request.is_ajax()
but I cant find anything like that for flask, i checked the docs but couldnt find it..
Asked
Active
Viewed 1,269 times
1 Answers
3
From Flask documentation:
request.is_xhr
Notice: This solution is deprecated and not viable anymore.

hamidfzm
- 4,595
- 8
- 48
- 80

paulo.filip3
- 3,167
- 1
- 23
- 28