小编jre*_*rel的帖子

使用cherrypy(python 2)禁用弱密码

我正在使用带有Python 2的Cherrypy 3.8.0来使用pyOpenSSL来使用SSL/TLS.

我想禁用SSL3以避免POODLE(或其他弱密码).

这是我到目前为止所拥有的:

  server_config={
          'server.socket_port': 443,
          'server.ssl_module':'pyopenssl',
          'server.ssl_certificate':'/path/myserver.crt',
          'server.ssl_private_key':'/path/myserver.key',
      }
Run Code Online (Sandbox Code Playgroud)

这与此问题类似,但对于python 2和pyopenssl.

如何指定或排除特定密码?谢谢!

python ssl openssl cherrypy python-2.7

4
推荐指数
1
解决办法
918
查看次数

CORS 错误,但仅限于 URL 中存在特殊字符

我的客户端 Web 应用程序是使用 Angular 编写的,服务器端是 AWS API 网关。

我收到错误:

Access to XMLHttpRequest at <my destiniation> from origin <my origin> has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Run Code Online (Sandbox Code Playgroud)

其中<my destination><my origin>不是同一个域。

问题是我确实有 CORS 设置来支持这一点。我的设置使用预检 OPTIONS 请求,后跟 PUT 请求(PUT 失败并出现 403,控制台显示 CORS 错误)。OPTIONS 请求的响应实际上包含 % access-control-allow-origin: *23,最奇怪的是,只有当我的一个(或多个)URL 参数参数中包含 %23 时,我的 PUT 请求才会失败(例如,作为 URL 编码的结果) # 象征)。

有谁知道为什么 URL 参数中的特殊字符会触发 CORS 错误,而没有特殊字符的完全相同的请求则可以毫无问题地传递 CORS?我可能会错过什么?

aws-api-gateway angular

4
推荐指数
1
解决办法
7832
查看次数

标签 统计

angular ×1

aws-api-gateway ×1

cherrypy ×1

openssl ×1

python ×1

python-2.7 ×1

ssl ×1