Welcome! Log In Create A New Profile

Advanced

Need help on the deny directive - not denying the first time but on reload

Posted by skwok 
Need help on the deny directive - not denying the first time but on reload
February 13, 2020 02:14PM
Hi,

I'm using nginx to reverse-proxy a web app written in Javascript. For access control, I'm using the deny directive to deny users from accessing the menu items under the system menu; however, it does not deny it at the first time it loads but only at reloading. Can someone please help?

The config is as followed:
location ^~ /system/ {
deny all;
}

And the testcase is as followed:
1) Use a browser to go to '/'
2) Click on the "System" menu and click "Overview", and it will load '/system/overview' with no denial (should 403 instead)
3) Hit the reload button
4) It shows 403 this time
Attachments:
open | download - Screen Shot 2020-02-13 at 10.57.38 AM.png (31.7 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready