# https://www.playframework.com/documentation/latest/SecurityHeaders # Connect to localhost:9000 for content security policy on websockets play.filters.headers { contentSecurityPolicy = "connect-src 'self' ws://localhost:9000" } # https://www.playframework.com/documentation/latest/AllowedHostsFilter # Allow requests to localhost:9000. play.filters.hosts { allowed = ["localhost:9000"] }