Having issue accessing the Discourse APIs from react app

If it’s public then configuring CORS should suffice and you should not need to bother with API keys at all.