If you have setup with GitHub pages it should work without worrying about CORS
Feel free to refer to my guide here https://orangepill.dev/nostr-guides/guide-to-verify-nostr-profile-nip05-identifier-with-your-domain/#setting-up-with-github-pages-easy-and-free