0

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..

Shark
  • 257
  • 2
  • 13

1 Answers1

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