Default development environment to app.fizzy.localhost (#2822)
Using fizzy.localhost causes CORS errors when using minio for Active Storage because the minio endpoint is at minio.fizzy.localhost — a sibling subdomain, not a subdomain of the app host. Switching to app.fizzy.localhost makes both hosts subdomains of fizzy.localhost, resolving the CORS issue. See #2814 for the related minio CORS fix. fizzy.localhost will continue to work if people want to use it, but all docs and scripts have been updated to point to app.fizzy.localhost.
This commit is contained in:
@@ -86,7 +86,8 @@ Rails.application.configure do
|
||||
end
|
||||
|
||||
config.hosts = [
|
||||
"fizzy.localhost",
|
||||
"app.fizzy.localhost",
|
||||
"fizzy.localhost", # here for backwards compat, but will have CORS errors when using minio
|
||||
"localhost",
|
||||
"127.0.0.1",
|
||||
/fizzy-\d+/, # review apps: fizzy-123, fizzy-456:3000
|
||||
|
||||
Reference in New Issue
Block a user