If you tried to test your web push integration and got a 401 unauthorized error in the console of your browser, you most likely need to take the following steps :
1. Add Your Test URL as an Allowed Dev Origin
Go to the Settings > Push settings section of your dashboard and add your test URLs in the "Allowed dev origins" field.

2. Switch to Dev Environment in the Tag Configuration
Add the following parameter to the javascript tag you added to the code of your website:
dev: true
🚧 Important : don't forget to remove this line in production.