Skip to content

Commit

Permalink
open /api/action/package_create
Browse files Browse the repository at this point in the history
  • Loading branch information
FuhuXia committed Sep 19, 2023
1 parent 32df37b commit 704f013
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxy/nginx-common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ location = /500.html {
}

# prevent users from accessing: '/dataset/new' route, 'package_create' and 'resource_create' API routes
location ~ ^/(dataset\/new|api\/action\/package_create|api\/action\/resource_create)\/? {
# location ~ ^/(dataset\/new|api\/action\/package_create|api\/action\/resource_create)\/? {
# deny all;
# }
location ~ ^/(dataset\/new)\/? {
deny all;
}

0 comments on commit 704f013

Please sign in to comment.