Having issue accessing the Discourse APIs from react app

If you’re trying to consume the Admin API (as opposed User API), the header fields required are Api-Key and Api-Username.