Skip to content

Commit 4a8d7ba

Browse files
committed
Document missing action_cable host configs in Guides [ci-skip]
Document `action_cable.allow_same_origin_as_host` and `action_cable.allowed_request_origins` configs.
1 parent d293276 commit 4a8d7ba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

guides/source/configuring.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,6 +2896,19 @@ You can find more detailed configuration options in the
28962896
Determines whether the Action Cable assets should be added to the asset pipeline precompilation. It
28972897
has no effect if Sprockets is not used. The default value is `true`.
28982898

2899+
#### `config.action_cable.allow_same_origin_as_host`
2900+
2901+
Determines whether an origin matching the cable server itself will be permitted.
2902+
The default value is `true`.
2903+
2904+
Set to false to disable automatic access for same-origin requests, and strictly allow
2905+
only the configured origins.
2906+
2907+
#### `config.action_cable.allowed_request_origins`
2908+
2909+
Determines the request origins which will be accepted but the cable server.
2910+
The default value is `/https?:\/\/localhost:\d+/` in the `development` environment.
2911+
28992912
### Configuring Active Storage
29002913

29012914
`config.active_storage` provides the following configuration options:

0 commit comments

Comments
 (0)