Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mStirner opened this issue Apr 25, 2024 · 0 comments
Closed

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

mStirner opened this issue Apr 25, 2024 · 0 comments

Comments

@mStirner
Copy link
Member

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
@OpenHausIO OpenHausIO locked and limited conversation to collaborators Jun 6, 2024
@mStirner mStirner converted this issue into discussion #477 Jun 6, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant