Skip to content

Add CORS config to the handler #68

Description

@jwoertink

https://guides.rubyonrails.org/action_cable_overview.html#allowed-request-origins

The Rails version allows a few CORS settings to be checked, and it rejects connections when they don't match:

config.action_cable.allowed_request_origins = ['https://rubyonrails.com', %r{http://ruby.*}]
# disable it with
config.action_cable.disable_request_forgery_protection = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthacktoberfestValid Issue for Hacktoberfest

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions