为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Login using persona does not work

  • 4 个回答
  • 2 人有此问题
  • 2 次查看
  • 最后回复者为 jk_in_mk

more options

Login using the Persona method does not work in FF (various versions and Operating systems). Using other browsers e.g. Chrome or IE it does work.

I followed the instructions at http://www.sitepoint.com/authenticate-users-with-mozilla-persona/ (because those at https://developer.mozilla.org/en-US/Persona/Quick_setup were not easy to understand)

On hitting the "signup with Persona" button it just adds # to the URL. I did a factory reset on my FF - no change. Cleared cookies, no change.

But it works beautifully for other browsers. As Persona was invented by Mozilla this is crazy isn't it? This affects other people too, not just my setup (FF 29 under Linux Mint).

Would be grateful for any advice, Thanks, John

Login using the Persona method does not work in FF (various versions and Operating systems). Using other browsers e.g. Chrome or IE it does work. I followed the instructions at http://www.sitepoint.com/authenticate-users-with-mozilla-persona/ (because those at https://developer.mozilla.org/en-US/Persona/Quick_setup were not easy to understand) On hitting the "signup with Persona" button it just adds # to the URL. I did a factory reset on my FF - no change. Cleared cookies, no change. But it works beautifully for other browsers. As Persona was invented by Mozilla this is crazy isn't it? This affects other people too, not just my setup (FF 29 under Linux Mint). Would be grateful for any advice, Thanks, John

被采纳的解决方案

Thanks for looking Moses,

It inspired me to try again and it turned out to be a .htaccess file - once I removed that Firefox was fine.

I copied that from the example but never knew what it was for and the example did not mention it so I thougth What the hell, lets remove it and see what happens.

In case it means anything to you (it doesn't to me!) the content was : <IfModule mod_headers.c>

   Header set X-Content-Security-Policy: "default-src 'self'; frame-src 'self' https://login.persona.org ; script-src 'self' https://login.persona.org"

</IfModule>

定位到答案原位置 👍 0

所有回复 (4)

more options

hello john, can you try it with noscript disabled to rule out any interference from that?

Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems

more options

Hi Philip,

I have tried that and also restarting FF in Safe Mode and the factory reset. It made no difference so I re-installed it. Probably the others who tried my demo site don't even use noscript.

The place I'm using it is http://mkas.org.uk/members/ Its intended to only allow a limited group of people entry. At the moment there is nothing beyond the login test until I get this working.

Thanks, John

more options

Hi John,

I don't think it's just you. I can reproduce this on Firefox 29.0.1 and Pale Moon v24.5.0 but it works just fine on Chrome and Opera.

When I open the Error Console, I get

[06:19:26.592] ReferenceError: jQuery is not defined @ http://mkas.org.uk/members/js/mkasVerify.js:67

[06:19:26.675] syntax error @ http://api.smarterfox.com/api/infinite_scrolling_rules.json?locale=en-US&install_time=1400958418209&install_uuid=48e1bda4-8573-f7f0-af91-ddc198518714&install_source=addons.mozilla.org&extension_name=FastestFox:1

[06:19:27.159] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ chrome://smarterwiki/content/jquery.js:3527

Looking into your code, I think that there's something up with the content in the script tags or the link rel tag up top.


Unfortunately, I don't have the knowledge to troubleshoot with HTML/CSS so I am going to pass on this question. Just thought I would confirm this isn't an isolated issue.


For the more experienced contributors, here is the source code just in case.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>MKAS members-only area</title> <link rel="stylesheet" href="css/persona/persona-buttons.css"> </head> <body> <h1>MKAS members-only area (testing)</h1> <p> I find this does not work with Firefox v29. Please let me know of your results. <br/> Thanks, <br/> John. </p> <a href="#" class="persona-button persona-signin"><span>Sign in with Persona</span></a> <!--jQuery Library from Google--> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <!--Persona Library from Mozilla--> <script src="https://login.persona.org/include.js"></script> <!-- Our custom code --> <script src="js/mkasVerify.js"></script> </body> </html>

more options

选择的解决方案

Thanks for looking Moses,

It inspired me to try again and it turned out to be a .htaccess file - once I removed that Firefox was fine.

I copied that from the example but never knew what it was for and the example did not mention it so I thougth What the hell, lets remove it and see what happens.

In case it means anything to you (it doesn't to me!) the content was : <IfModule mod_headers.c>

   Header set X-Content-Security-Policy: "default-src 'self'; frame-src 'self' https://login.persona.org ; script-src 'self' https://login.persona.org"

</IfModule>