FEATURE: Add setting to disable automatic CORS rule install in S3 buckets (#9872)

This commit is contained in:
Rafael dos Santos Silva
2020-05-25 17:09:34 -03:00
committed by GitHub
parent d9f915b195
commit b48299f81c
3 changed files with 6 additions and 0 deletions

View File

@@ -90,6 +90,8 @@ class S3Helper
# make sure we have a cors config for assets
# otherwise we will have no fonts
def ensure_cors!(rules = nil)
return unless SiteSetting.s3_install_cors_rule
rule = nil
begin