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
Post a Comment