Great question. Employers sure don't have any reservations about seeing your GitHub, watching you whiteboard random and obscure puzzles for 8 hours, requesting 50% of your yearly time-off on worthless interviews, etc.
Seems like what's good for the goose and all...
Having thought about it, I'd probably run as fast as I could if an employer with whom I was interviewing had a over-grown, out-of-contgrol spaghetti-code, all-javascript-SPA type code base - all business logic on the front-end, endless chains of promises and events being fired asynchronously from God-knows-which controllers, etc.
Add Mongo or another NoSQL solution as their main backend, and the interview would come to a hasty end. :)
And let's be honest, unless the potential employer is working on Top Secret defense software or is some Silicon Valley, PHD-heavy AI startup, their typical CRUD app does not warrant a NDA or anything else, at least for a cursory glance at the main code base, build system, etc., especially if you're not currently employed with their direct competitor(s).