Skip to content
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

Optional URL configuration to ensure serverName #1762

Closed
nadar opened this issue Feb 7, 2018 · 0 comments
Closed

Optional URL configuration to ensure serverName #1762

nadar opened this issue Feb 7, 2018 · 0 comments
Assignees

Comments

@nadar
Copy link
Member

nadar commented Feb 7, 2018

A configuration option which ensures the serverName is equal the given serverName.

if ($_SERVER['server_name'] !== 'mydomain') { exit; }

This could encounter a potential security issue when the server is configured with dns wildcard.

The composition component could have a new option which is used when a value is set

'composition' => [
   'allowedHosts' => ['example.com', 'dev.example.com', 'anotherdomain.com', '*.wildcard.com'],
   // or as string
   'allowedHosts' => 'example.com',
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant