Skip to content

Create a "allowed domains/hosts" config variable? #449

@mStirner

Description

@mStirner

Would it be helpful to create a "allowed hosts" configuration, like in nextcloud "trusted domains"?:

'trusted_domains' =>
   [
    'demo.example.org',
    'otherdomain.example.org',
    '10.111.112.113',
    '[2001:db8::1]'
  ]

https://github.com/nextcloud/server/blob/1f2ad209b35f669b530d2c6cb604414aef599c1c/config/config.sample.php#L77-L83

In curl (Or HTTP requests in general) you can put what ever you want in the host header/when the unix socket is used:

curl -X GET --unix-socket /tmp/open-haus.sock http://example.com/api/rooms

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions