We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

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

详细了解

My site method getting called twice in firefox browser but not on other browsers

  • 6 个回答
  • 2 人有此问题
  • 12 次查看
  • 最后回复者为 smorele

more options

My site method getting called twice in firefox browser but not on other browsers. When i check the console the it calls twice, one with request header as: Host rapidmicrobiology.dev User-Agent Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0 Accept text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Referer http://rapidmicrobiology.dev/ Cookie XSRF-TOKEN=eyJpdiI6IjJzVlhrQXJ…4YjY2MjcwMjg0MjhkNjUifQ%3D%3D Connection keep-alive Upgrade-Insecure-Requests 1

While the other which is 200 as:

Host rapidmicrobiology.dev User-Agent Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0 Accept text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Referer http://rapidmicrobiology.dev/ Cookie XSRF-TOKEN=eyJpdiI6IjJzVlhrQXJ…4YjY2MjcwMjg0MjhkNjUifQ%3D%3D Connection keep-alive Upgrade-Insecure-Requests 1

My site method getting called twice in firefox browser but not on other browsers. When i check the console the it calls twice, one with request header as: Host rapidmicrobiology.dev User-Agent Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0 Accept text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Referer http://rapidmicrobiology.dev/ Cookie XSRF-TOKEN=eyJpdiI6IjJzVlhrQXJ…4YjY2MjcwMjg0MjhkNjUifQ%3D%3D Connection keep-alive Upgrade-Insecure-Requests 1 While the other which is 200 as: Host rapidmicrobiology.dev User-Agent Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0 Accept text/html,application/xhtml+xm…plication/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Referer http://rapidmicrobiology.dev/ Cookie XSRF-TOKEN=eyJpdiI6IjJzVlhrQXJ…4YjY2MjcwMjg0MjhkNjUifQ%3D%3D Connection keep-alive Upgrade-Insecure-Requests 1

所有回复 (6)

more options

hello, hard to explain especially if it's your project behind a local hostname. Check your code, especially javascript, your server settings etc. If your project is only about html/css/javscript (static website) then try to push your sources on a public server if possible, we will try to investigate deeper. In addition, can you reproduce with firefox in safe mode?

more options

But the problem is only with firefox, and not other browsers. My project is in php. I tried in safe mode as well., but the probem exists.

由garimarameshsingh于修改

more options

Ok, new browsers built to W3C Standards, implementing that is not easy. So with that said you when making a web page also has to adhere to see thing in your code. So the slightest error in code can break a browser. In this case Firefox. So I am thinking. http://www.rapidmicrobiology.com/ Seems rather a small error here in your code on front page HTML but not going to run each page to see if more. Please check your code 1 more time running your pages through here for HTML https://validator.w3.org/ as per error https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.rapidmicrobiology.com%2F and CSS through here https://jigsaw.w3.org/css-validator/ errors https://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.rapidmicrobiology.com%2F&profile=css3&usermedium=all&warning=1&vextwarning=&lang=en

So, yes it may still be the browser if you were having other issues on other sites, or something else was going. So suggest that it is the code and Firefox now can not read the incorrect/errors.

Now I may be completely wrong on this altogether.

Please let us know if this solved your issue or if need further assistance.

由Shadow110于修改

more options

the site http://www.rapidmicrobiology.com/ is an old one, I have created same website in php-laravel locally. It is not yet public, how can I check errors/bugs on local pages?

more options

Found no error here https://validator.w3.org/nu/#textarea only warnings.

more options

I do not think it comes from HTML but from javascript or request. Do you have a form or a PHP which could send a request automatically? Again, the best way to help you is to get the website and reproduce your issue.