Here’s how I solved my issue. If you have a plugin or any code that blocks the WordPress REST API, then delete/disable it. The culprit for me was WordFence.
Here’s a screenshot: https://i.imgur.com/I1pImC9.png
If you’re running WordFence, just disable this option.