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

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]