gpt4 book ai didi

gwt - 在生产中包含 devModeRedirectEnabled=true 的缺点?

转载 作者:行者123 更新时间:2023-12-04 14:24:01 25 4
gpt4 key购买 nike

我今天成功运行了 GWT 2.6.1 SuperDevMode,我想知道我们是否可以将这一行留在 .gwt.xml 文件中:

<set-configuration-property name="devModeRedirectEnabled" value="true"/>

在本文 ( http://blog.ltgt.net/how-does-gwts-super-dev-mode-work/ ) 中,它建议将其删除以用于生产。我想知道为什么?

如果我们将其保留用于生产,会对性能或安全产生任何影响吗?

最佳答案

实际上,从 GWT 2.6.0 开始,它现在开启,因为已经添加了安全措施。

来自release notes :

Release Notes for 2.6.0 (RC4)

This release enabled the Super Dev Mode hook by default

[…]

Super Dev Mode

  • Security: with 2.6 we believe it's safe to turn on the Super Dev Mode hook and leave it on in production. As an extra precaution, we recommend setting the devModeUrlWhitelistRegexp configuration property to ensure that it can only load JavaScript from localhost and your developers' machines in your own domain.

  • Security: automatically disable Super Dev Mode on https pages (Another precaution, and it doesn't work anyway due to mixed-content restrictions.)

(注意:devModeUrlWhitelistRegexp 默认只允许 localhost127.0.0.1)

关于gwt - 在生产中包含 devModeRedirectEnabled=true 的缺点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23824433/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com