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.

Additional step to test your Safari setup

If you want to test your web push implementation on Safari as well, you need to add your testing domain as a new allowed domain. To do that, go to Go to the Settings > Push settings > Website Push Configuration and click on "Add New Domain".

You will also need to upload a push certificate generated for that domain as indicated here: Generating the .p12 certificate.

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. 

Did this answer your question?