DEV: include cors header to public file server in dev environment. (#11007)

While enabling CORS header in localhost we should include it in public file server too. Else it will return the errors.
This commit is contained in:
Vinoth Kannan 2020-10-26 17:45:35 +05:30 committed by GitHub
parent 43557143fe
commit 8d3837c824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ Discourse::Application.configure do
config.assets.debug = false
config.public_file_server.headers = {
'Access-Control-Allow-Origin' => '*'
}
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
config.watchable_dirs['lib'] = [:rb]