I just make my first project in asp.net mvc and make it live on hostgator.in. On 1 page of my application I am loading partial view through ajax which is not working properly and in console I am getting error
Failed to load resource: the server responded with a status of 403 (ModSecurity Action)
.
After searching about it I understand that client (my browser) does not have permission to access the requested url and hence no ajax call is working/ no javascript code is running. I am not able to figure out that why I don't have the permission
ModSecurity blocks suspicious looking requests to improve security.
So it's not so much you don't have permission (which is what a 403 would normally indicate) but something about your requests trigger ModSecurity to jump in and block them. Web Application Firewalls (WAF) like ModSecurity can be prone to false positives if not "tuned" to allow the traffic your website normally uses.
You'll need to speak to hostgator to figure out exactly what rule this tripped and how to tweak the rule to allow this request to go through in future.