How to allow only POST calls to serve Nginx static json files -


hi trying serve static json files nginx. want serve these static files via post request , disable calls.

is there way so.

i refered looks hack , looking more reliable solution

just include following in location block static files:

limit_except post {     deny all; } 

this send 403 every request not using post http method..

btw, there different ways achieve this, such cors, think it's out of scope here.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -