Browse Source

server: Add CORSFilter

This simplifies the development process and allow us to load the
application via http.
scalafmt-draft v2018.04.02
Alexis Hernandez 7 years ago
parent
commit
eb2762e3ff
  1. 6
      server/conf/application.conf

6
server/conf/application.conf

@ -13,8 +13,14 @@ play.http {
secret.key=${?PLAY_APPLICATION_SECRET}
}
play.filters.enabled += "play.filters.cors.CORSFilter"
play.filters.enabled += "com.xsn.explorer.play.LoggingFilter"
play.filters.cors {
allowedOrigins = ["http://xsnexplorer.io", "http://localhost:4200"]
allowedHttpMethods = ["GET"]
}
rpc {
host = "http://localhost:51473"
username = "dummy"

Loading…
Cancel
Save