2016-12-25 92 views
0

测试我的应用程序时,我发现了错误,当本地工作,因为我切换到https:有没有办法让HTTPS请求从本地主机要求测试

Warning: Domain www.example.com does not specify a meta-policy.

Applying default meta-policy 'master-only'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem.

Error: Request for resource at https://www.example.com/?json=user/get_logged_in_user by requestor from http://localhost:8888/Test-debug/Test.swf is denied due to lack of policy file permissions.

我试图改变我的localhost https但得到了以下错误:

Secure Connection Failed

An error occurred during a connection to localhost:8888. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem.

从我读过,我可以上传并添加策略文件和不断变化的安全为true什么,但我不希望允许从任何地方的电话。一旦瑞士法郎在我的服务器上一切正常。

有没有办法让本地测试工作?有什么在测试一样,我可以启用:

Security.allowDomain("localhost"); 

当我做测试或做我必须上传跨域策略,然后删除该策略?

由于我的本地站点在浏览器本地运行,它不应该能够连接到https连接吗?

回答

1

使用https(顺便说一句,根据你发布的消息没有正确配置(你使用FireFox测试?))没有帮助。问题是www.example.com没有crossdomain.xml政策文件,因此Flash播放器不允许从您的localhots这也是一个域访问该域。

如果您有权访问www.example.com在此处添加带有通配符访问的策略文件,如果没有 - 通过http测试仅适用于使用某些http代理模拟响应。

0

我更改为使用file://(无服务器)进行测试,它的作用是使https调用。

相关问题