SPFx – Security error on local workbench



Hello everyone,

Today I’ll talk about an error that can occur when you start to develop SPFx.

Working with this, you can face yourself with an error of security when you try to launch the local workbench “This site can’t provide a secure connection

spfx error

To fix this, you should specify an environment variable in your user profile “NODE_NO_HTTP2” with the value “1”


Thanks to my colleague stephane which was confronted to this error and shared his solution.


Update :

After some search, I found that the error was discuss on github and a solution without modifying a variable is provided.

When you run your “gulp serve”, run instead “NODE_NO_HTTP2=1 gulp serve


Hoping this helps!



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s