I don't think Axios sets the X-Requested-With header by default, so you 
will probably have to add that setting when configuring it (the value of 
that header should be 'XMLHttpRequest').

Anthony

On Friday, November 10, 2017 at 12:58:55 PM UTC-5, Pierre wrote:
>
> Hi everyone,
>
> I am making get request from the browser with javascript sometimes using 
> axios:
> https://github.com/axios/axios
> the request url function prints out *request.ajax* to the console and 
> it's always* False* ?
> this is important for me because i want to discard these urls if they 
> aren't hit by an ajax call (does that make sense ?)
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to