From 1281d975f94d31d90d69d6ecb275f16cc16f335d Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Fri, 16 Mar 2018 10:59:18 -0700 Subject: [PATCH 1/2] Allow localhost:9000 explicitly in example. Same as https://github.com/playframework/play-java-starter-example/pull/61 --- conf/application.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/application.conf b/conf/application.conf index 8f313149..02f1d86a 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -281,8 +281,8 @@ play.filters { # Play provides a filter that lets you configure which hosts can access your application. # This is useful to prevent cache poisoning attacks. hosts { - # Allow requests to example.com, its subdomains, and localhost:9000. - #allowed = [".example.com", "localhost:9000"] + # Allow requests to localhost:9000. + allowed = ["localhost:9000"] } } From 365b72f54c432debcc312f0a4889a94398e47b56 Mon Sep 17 00:00:00 2001 From: Will Sargent Date: Sat, 17 Mar 2018 11:39:19 -0700 Subject: [PATCH 2/2] Update application.conf --- conf/application.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/application.conf b/conf/application.conf index 02f1d86a..520bd90d 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -281,8 +281,8 @@ play.filters { # Play provides a filter that lets you configure which hosts can access your application. # This is useful to prevent cache poisoning attacks. hosts { - # Allow requests to localhost:9000. - allowed = ["localhost:9000"] + # Allow requests to localhost on ports 9000 (dev) and 19001 (default test) ports + allowed = ["localhost:9000", "localhost:19001"] } }