asp.net mvc - ASP .NET MVC How to make Url that look like POST not GET -


so have links like:

http://domain.com/action?some=1&foo=2 

and on. it's make me upset, clever users might reinvent link on own , access data, not desirable. know can setup security on server side, i'd make links like:

http://domain.com/action 

and 'some' , 'foo' send post request

actions in asp.net mvc don't distinguish betweed post , far parameters actions concerned. however, can start marking actions attribute [httppost]. limit request options post only.

now second "issue", need change links use post instead of get, can using ajax, check out $.post in jquery that.

this doesn't solve security issues parameters though, doesn't matter if show in querystring or of sent post. if wants inject post-data, it's not rocket science.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -