Futuregeek
Futuregeek

Reputation: 1980

Restrict MVC method to accept only AJAX calls

How can we restrict MVC method to accept only AJAX calls in java?

I am using 'Spring' as MVC

Upvotes: 1

Views: 204

Answers (1)

pablochan
pablochan

Reputation: 5715

You can't. An "AJAX call" is just a normal HTTP request.

Upvotes: 2

Related Questions