【问题标题】:How to start unsecured Play Server in Production mode如何在生产模式下启动不安全的 Play Server
【发布时间】:2017-02-01 01:43:50
【问题描述】:

我正在使用 Play Framework v2.5 开发 Web 服务器。 它将在 Intranet 中运行,并将使用 HTTP,而不是 HTTPS。

当我在开发模式下启动 Play Server 时,它可以工作。

但在生产模式下,播放服务器将Secure 标志设置为会话 Cookie。

由于连接使用 HTTP 而不是 HTTPS 浏览器不发送 Session Cookie 并且用户无法登录。

如何禁用此功能并避免在 Play Production Mode 中将 Secure 设置为 Cookie?

【问题讨论】:

标签: cookies playframework production


【解决方案1】:

尝试在您的application.conf 文件或命令行中设置play.http.session.secure=false

$ yourapp/bin/yourapp -Dplay.http.session.secure=false

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-01-24
    • 1970-01-01
    • 2020-12-30
    • 2013-06-18
    • 2019-08-13
    • 1970-01-01
    • 2016-02-18
    • 1970-01-01
    相关资源
    最近更新 更多