mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add setting to disable automatic CORS rule install in S3 buckets (#9872)
This commit is contained in:
committed by
GitHub
parent
d9f915b195
commit
b48299f81c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user