Kohana : Untrusted host localhost. If you trust localhost, add it to the trusted hosts in the `url` config file.« Wróć do listy pytań

Kohana : Untrusted host localhost. If you trust localhost, add it to the trusted hosts in the `url` config file.
Wysłane przez mrmucha
Zadane przez 27/08/2015 15:02
0

Create new file: my_project\application\config\url.php

and put this code

1
2
3
4
5
return array(
    'trusted_hosts' => array(
        'localhost',
    ),
);
return array(
	'trusted_hosts' => array(
		'localhost',
                'another.host.com'
	),
);
You can always change line ("localhost") to Your domain
Wysłane przez mrmucha
Odpowiedziane 27/08/2015 15:03