try again

This commit is contained in:
Kenneth Kehl
2025-02-06 11:33:58 -08:00
parent 515419e0a2
commit afd3d94790

View File

@@ -316,6 +316,7 @@ def init_app(application):
application.before_request(load_organization_before_request)
application.before_request(request_helper.check_proxy_header_before_request)
application.before_request(make_session_permanent)
application.before_request(block_serving_node_files)
application.after_request(save_service_or_org_after_request)
start = len(asset_fingerprinter._filesystem_path)
@@ -372,11 +373,6 @@ def init_app(application):
g.start = monotonic()
g.endpoint = request.endpoint
@application.before_request
def block_serving_node_files():
if "node_modules" in request.path:
abort(403)
@application.context_processor
def inject_global_template_variables():
return {
@@ -409,6 +405,11 @@ def make_session_permanent():
session.permanent = True
def block_serving_node_files():
if "node_modules" in request.path:
abort(403)
def create_beta_url(url):
url_created = None
try: