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:
parent
43557143fe
commit
8d3837c824
|
@ -28,6 +28,10 @@ Discourse::Application.configure do
|
||||||
|
|
||||||
config.assets.debug = false
|
config.assets.debug = false
|
||||||
|
|
||||||
|
config.public_file_server.headers = {
|
||||||
|
'Access-Control-Allow-Origin' => '*'
|
||||||
|
}
|
||||||
|
|
||||||
# Raise an error on page load if there are pending migrations
|
# Raise an error on page load if there are pending migrations
|
||||||
config.active_record.migration_error = :page_load
|
config.active_record.migration_error = :page_load
|
||||||
config.watchable_dirs['lib'] = [:rb]
|
config.watchable_dirs['lib'] = [:rb]
|
||||||
|
|
Loading…
Reference in New Issue