File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2896,6 +2896,19 @@ You can find more detailed configuration options in the
2896
2896
Determines whether the Action Cable assets should be added to the asset pipeline precompilation. It
2897
2897
has no effect if Sprockets is not used. The default value is ` true` .
2898
2898
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
+
2899
2912
# ## Configuring Active Storage
2900
2913
2901
2914
` config.active_storage` provides the following configuration options:
You can’t perform that action at this time.
0 commit comments