[英]Javascript error in rails app (locally run)
I am trying to move a development environment from production to my local machine (Ubuntu), and when I get the code up and running on my box, the site works in rails but I get this JS error: 我正在尝试将开发环境从生产环境移到本地计算机(Ubuntu),当我在框上启动并运行代码时,该站点可以在Rails中运行,但出现此JS错误:
Permission denied for http://ad.doubleclick.net to call method Location.toString on http://localhost:3000 . 拒绝http://ad.doubleclick.net调用http:// localhost:3000上的Location.toString方法。
Line 0 0行
Do you have any idea how to fix JS problems, or should I disable the ads in development? 您是否知道如何解决JS问题,还是应该停用开发中的广告?
This is most likely an error that you can ignore. 这很可能是您可以忽略的错误。 Its probably contained to an iframe created by the advertisement module.
它可能包含在广告模块创建的iframe中。
I'm pretty sure that error occurs on the production version too, unless the production version is actually hosted at ad.doubleclick.net
, which I guess its not :) 我非常确定在生产版本上也会发生错误,除非生产版本实际上托管在
ad.doubleclick.net
,但我猜不是这样:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.