Skip to content

Blocked host after setting up public domain #79

Description

@janaxhell

Describe the bug
If I try to access darawich through my cloudflare domain, I get this error

Blocked hosts: XXX.XXX.XXX
To allow requests to these hosts, make sure they are valid hostnames (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:
    config.hosts << "XXX.XXX.XXX"

I have added that line at the end of
/config/environments/development.rb
but it doesn't work.

Version
0.7.1

To Reproduce
Steps to reproduce the behavior:

  1. Open Darawich via domain

Expected behavior
To work with no error

Screenshots
image

Logs
11:35:48 web.1 | [ActionDispatch::HostAuthorization::DefaultResponseApp] Blocked hosts: XXX.XXX.XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions