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

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -