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.

[problem] Mac OS Firewall popup on every launch of puppeteer

See original GitHub issue

With every launch on mac os, it causes mac os to ask the following question

“Do you want to the application Chromium.app to accept incoming network connections?”

Steps to reproduce

  • Puppeteer version: 1.18.1
  • Platform / OS version: Mac OS Sierra 10.12.4
  • Node.js version:v11.2.0

What steps will reproduce the problem?

const browser = await puppeteer.launch({ headless: false })
and visit any url...

What is the expected result?

Chromium window appear with the site content

What happens instead?

Chromium window appear with the site content And the Mac OS alert pop ups asking “Do you want to the application Chromium.app to accept incoming network connections?”

No matter what you do with the Mac OS Firewall setting it keeps asking it again and again and again.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:74
  • Comments:25 (2 by maintainers)

github_iconTop GitHub Comments

82reactions
chrisfrankocommented, Feb 15, 2020
sudo codesign --force --deep --sign - ./node_modules/puppeteer/.local-chromium/mac-722234/chrome-mac/Chromium.app

This is what I used. It’ll prompt you for your password. Then the next time Chromium with a head opens up youll get the prompt one last time and youre good to go from then on. Enjoy!

22reactions
sepatincommented, Aug 22, 2019

Go to system preferences then create a self signed certificate (keychen app, “trousseaux d’acces” in french). Tell a name “MyCertificateName”, self signed root and code signing certificate type. Tell system that you trust it.

Capture d’écran 2019-08-22 à 23 24 55

Capture d’écran 2019-08-22 à 23 27 19

Open a command and write "codesign -s MyCertificateName -f ./tothepath/yourapp.app --deep

Your app is now self signed and trusted for all the system, you should not be notified anymore (it worked for me)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer/chromium on Mac chronically prompting "accept ...
2 we had no problem. Node launches puppeteer on timer; On every launch, system asks: "Do you want to the application Chromium.app to...
Read more >
How to get rid of firewall "accept incoming connections" dialog?
There are two options here: You can simply select "Allow All" in your firewall, or simply turn it off. You can remove the...
Read more >
Keep being asked if I want to allow incoming connections on ...
I have checked the firewall rules, and the rule to block incoming connections is there, so why does it keep popping up every...
Read more >
Why does the Mac OS X firewall dialog recurringly pop-up and ...
It seems that the firewall is not correctly recognizing the applications and/or acting incorrectly upon their detection. This belief is reinforced by the...
Read more >
Continuous "Do you want the application "… - Apple Community
app" to accept incoming network connections?" pop-ups on Mac. Like Alpity and ILikePudding, I had the same issue and it's been going on...
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