Basic Auth without HTTPS is a plaintext password
Base64 is encoding, not encryption: anyone holding the header can read the password back instantly. Over plain HTTP, every proxy, Wi-Fi access point and access log along the way can see it. Always pair Basic Auth with HTTPS, and keep it to server-to-server calls or quick debugging — credentials shipped in front-end code are public.