question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SecurityError: The operation is insecure in Firefox Developer edition

See original GitHub issue

Description

With gatsby develop and Firefox Developer Edition (latest version, 69.07b), firefox throws a security error exception when app.js checks if (serviceWorker in navigator), and hence the app cannot be used:

SecurityError

Steps to reproduce

  1. Install firefox developer edition
  2. Run gatsby develop on any gatsby project (no offline plugin nor anything sw-related)

Expected result

You see the website and can develop it normally.

Actual result

You get the error above and hence cannot do anything (the error triggers the react overlay error and does not let you interact with the site at all)

Environment

  System:
    OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
    Shell: 5.0.3 - /bin/bash
  Binaries:
    Node: 10.16.0 - /tmp/yarn--1564036896798-0.009151794373142508/node
    Yarn: 1.17.3 - /tmp/yarn--1564036896798-0.009151794373142508/yarn
    npm: 6.9.0 - /usr/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Firefox: 68.0
  npmPackages:
    gatsby: ^2.1.27 => 2.13.32
    gatsby-image: ^2.0.31 => 2.2.6
    gatsby-plugin-create-client-paths: ^2.0.4 => 2.1.3
    gatsby-plugin-env-variables: ^1.0.1 => 1.0.1
    gatsby-plugin-manifest: ^2.0.22 => 2.2.3
    gatsby-plugin-react-helmet: ^3.0.8 => 3.1.2
    gatsby-plugin-react-svg: ^2.1.1 => 2.1.1
    gatsby-plugin-remote-images: ^1.0.1 => 1.0.3
    gatsby-plugin-sass: ^2.0.11 => 2.1.3
    gatsby-plugin-sharp: ^2.0.25 => 2.2.8
    gatsby-plugin-typescript: ^2.1.0 => 2.1.2
    gatsby-source-filesystem: ^2.0.23 => 2.1.5
    gatsby-source-s3-image: ^1.5.8 => 1.6.5
    gatsby-transformer-sharp: ^2.1.15 => 2.2.4

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:26
  • Comments:40 (4 by maintainers)

github_iconTop GitHub Comments

47reactions
kilburncommented, Sep 28, 2019

I worked around the issue by disabling the “Delete cookies and site data when Firefox Developer Edition is closed” option: imatge

28reactions
areinmeyercommented, Jan 12, 2020

Just came across this error as well in Firefox 72.

A different option than unchecking the Delete cookies and site data when Firefox is closed is to leave it checked but then go into Manage Permissions option next to the checkmark and add localhost:8000 to the Allow list. Just adding localhost did not work for me, I had to specifically add the port as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: The operation is insecure. How can I stop this? | Firefox ...
Solution to <error: The operation is insecure> Corrected this by disabling a YouTube High-Def plugin.
Read more >
Firefox v.70.0.1 - Error: "Uncaught (in promise): SecurityError
Firefox v.70.0.1 - Error: "Uncaught (in promise): SecurityError: The operation is insecure.
Read more >
localStorage throws Security error: "The operation is insecure"!
Developer Documentation Request Request Type: Correction Gecko Version: 54 Branch Technical Contact: :: Details localStorage throws Security error: "The ...
Read more >
How to troubleshoot security error codes on secure websites
If the certificate cannot be validated, Firefox will stop the connection to the website and show a "Warning: Potential Security Risk Ahead" error...
Read more >
accounts.firefox.com fails with: SecurityError: The operation is ...
The Developer console shows: "SecurityError: The operation is insecure." The expected result is that it shows the login <input> boxes, Firefox logo etc....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found