草庐IT

INSECURE

全部标签

javascript - JSLint "disallow insecure in regex"选项的用途

我有一行代码在通过JSLint运行时出现以下错误:Lintatline604character48:Insecure'^'.numExp=parseInt(val[1].replace(/[^\-+\d]/g,""),10);这个错误似乎是指JSLint的选项页面中的以下描述:"trueif.and[^...]shouldnotbeallowedinRegExpliterals.Theseformsshouldnotbeusedwhenvalidatinginsecureapplications."我不太明白客户端javascript应用程序如何真正被认为是安全的。即使使用最严密的正则

javascript - 安全错误 : The operation is insecure - window. history.pushState()

我在Firefox的控制台中收到此错误:SecurityError:Theoperationisinsecure错误是HTML5功能:window.history.pushState()当我尝试时用AJAX加载一些东西。它应该加载一些数据,但Javascript因错误而停止执行。我想知道为什么会这样。这是一些服务器配置错误吗?任何帮助将不胜感激。更新:是的,这是一个域名不匹配的服务器错误:http://en.wikipedia.org/wiki/Same-origin_policy 最佳答案 确保您关注SameOriginPolic

linux - zsh compinit : insecure directories. Compaudit 显示/tmp 目录

我在RaspberryPi2(RaspbianJessie)上运行zsh。zshcompinit提示/tmp目录不安全。所以,我检查了目录的权限:$compauditThereareinsecuredirectories:/tmp$ls-ld/tmpdrwxrwxrwt13rootroot16384Apr1011:17/tmp显然任何人都可以在/tmp目录中做任何事情。考虑到它的目的,这是有道理的。所以我尝试了thisstackoverflowquestion上的建议.我还在其他网站上尝试了类似的建议。具体来说,它建议关闭对该目录的组写权限。由于根据ls-ld权限看起来如何,我还必须关

mysql - Bash 脚本 Mysql 警告 : Using a password on the command line interface can be insecure

您好,我有一个脚本可以对一些mysql数据库进行分区。我们正在从5.5升级到5.6。在测试脚本时,我注意到新的5.6版本的mysql返回Warning:Usingapasswordonthecommandlineinterfacecanbeinsecure.解决此问题的最佳方法是什么?我读到一个解决方法是2>/dev/null但我将无法获得退出代码或任何错误,如果它们发生的话。有没有其他方法可以做到这一点。这是有问题的代码行:MYSQL_RESULT=`echo"SETsql_log_bin=0;SET@pdb='$DB',@ptable='$table';CALLmaintenanc

android - 在 android 的 Google Chrome 中,如何设置 unsafely-treat-insecure-origin-as-secure

我在我的网络应用程序中使用getUserMedia(),当我在localhost上测试我的应用程序时效果很好。但是,如果我将笔记本电脑视为服务器并在我的android手机的GoogleChrome浏览器中启动应用程序,则会出现错误:getUserMedia()nolongerworksoninsecureorigins.Tousethisfeature,youshouldconsiderswitchingyourapplicationtoasecureorigin,suchasHTTPS.Seehttps://goo.gl/rStTGzformoredetails.当我检查[https

docker - 如何为 docker 注册表允许多个 '--insecure-registry'

众所周知,我们可以在/etc/default/docker配置文件中添加一个--insecure-registry来允许不安全的注册表,如下所示:DOCKER_OPTS="$DOCKER_OPTS--insecure-registrymyregistry:5000"我的问题是:它是否支持添加多个--insecure-registry因为我们需要与多个注册表进行通信? 最佳答案 您可以通过排列来指定多个不安全的注册表:--insecure-registryIP1:PORT--insecure-registryIP2:PORT--ins

docker - 我应该在哪里设置 Mac OS 上的 '--insecure-registry' 标志?

我使用的是OSX10.10。在尝试与我们团队的私有(private)docker注册表通信时,它不断给我这样的错误:Error:Invalidregistryendpointhttps://registry.xxx.xxx/v1/:Gethttps://registry.af-sys.com/v1/_ping:dialtcpxx.xxx.xxx.xxx:xxx:i/otimeout.IfthisprivateregistrysupportsonlyHTTPorHTTPSwithanunknownCAcertificate,pleaseadd--insecure-registry...在

ruby-on-rails - 在 PATH 中获取警告 "Insecure world writable dir/home/chance ",rails 和 gem 的模式 040777

我试过this但它没有用,似乎适用于osx。我有一个带有rvm、rails3和ruby​​1.9.2的全新Ubuntu10.10安装。我有一个新的rails应用程序,但使用gem或rails会导致以下警告(有滞后)。$rails-v/home/chance/.rvm/gems/ruby-1.9.2-p180@global/gems/railties-3.0.5/lib/rails/script_rails_loader.rb:11:warning:Insecureworldwritabledir/home/chanceinPATH,mode040777/home/chance/.rvm

解决Mixed Content: The page at https://* was loaded over HTTPS, but requested an insecure XMLHttpReque

目录项目场景问题描述原因分析解决方案一些问题项目场景https协议的网站下请求http的资源问题描述https协议的网站请求http协议的资源被浏览器任务不安全,请求被拦截并且报了以下错误:原文: MixedContent:Thepageathttps://*wasloadedoverHTTPS,butrequestedaninsecureXMLHttpRequestendpointhttp://*.Thisrequesthasbeenblocked;thecontentmustbeservedoverHTTPS译文:混合内容:https://*上的页面是通过HTTPS加载的,但是请求了一个不

解决Mixed Content: The page at https://* was loaded over HTTPS, but requested an insecure XMLHttpReque

目录项目场景问题描述原因分析解决方案一些问题项目场景https协议的网站下请求http的资源问题描述https协议的网站请求http协议的资源被浏览器任务不安全,请求被拦截并且报了以下错误:原文: MixedContent:Thepageathttps://*wasloadedoverHTTPS,butrequestedaninsecureXMLHttpRequestendpointhttp://*.Thisrequesthasbeenblocked;thecontentmustbeservedoverHTTPS译文:混合内容:https://*上的页面是通过HTTPS加载的,但是请求了一个不