Open unsigned apps on your work Mac

Some time ago our IT department added a new stupid rule to our laptops which prevents opening newly installed unsigned apps (or maybe I just didn't run into unsigned apps before? idk). The setting can't be changed either. This is a problem as there are some great open-source apps which aren't signed, like QMK Toolbox and Vial.

Usually you can just find the .App file from your Finder, ⌘-click it and select "Open" which lets you open unsigned apps. This didn't work for me. However, running this command and then opening the app normally works:

sudo xattr -cr YourApp.app

(Solution found from this GitHub issue)