Directus - getting CORS error when attempting to access API from browser


I’m getting CORS errors when trying to access the my directus instance’s API from the browser.

For reference, I am using this:

But, even standard ajax request’s are failing as long as they are coming from the browser (server to server API requests work)

I have attempted to changing various configuration settings based on this documentation: Configuration Options | Directus Docs

Nothing seems to work. Am I missing something?

Hi @Jasudavi, welcome to the forum and thanks for asking the question!

This may be a better question to ask on a Directus forum or see if there have been any related issues in the past on their GitHub repo -

We do have several community members that work with Directus, hopefully one of them has seen this before and can provide some additional insights.