Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS Missing Allow Origin With AgencyOS and Directus #116

Open
BradPerbs opened this issue Aug 28, 2024 · 2 comments
Open

CORS Missing Allow Origin With AgencyOS and Directus #116

BradPerbs opened this issue Aug 28, 2024 · 2 comments

Comments

@BradPerbs
Copy link

I've freshly installed Directus with AgencyOS and I'm getting CORS Missing Allow Origin when navigating through the pages.

If I reload the page then it loads, but when navigating for example using the menu, it returns CORS Missing Allow Origin.

Test url: https://new.reputazi.com/

@omgitsjan
Copy link
Contributor

omgitsjan commented Aug 30, 2024

Do you have configured the CORS settings in the env in your Directus development, as they say in the documentation? (https://docs.directus.io/self-hosted/config-options.html#cors)

On my side, it works with these settings in the Directus Env:

CORS_ENABLED: 'true'
CORS_ORIGIN: 'true'
PUBLIC_URL: 'YOUR_DEPLOYED_URL'

@rantoniuk
Copy link

I just battled with the same in my env:

  • directus deployed via docker-compose on https://api.domain.com
  • nuxt frontend deployed on vercel on https://www.domain.com

here is what worked for me on directus side:

      CORS_ENABLED: 'true'
      CORS_ORIGIN: 'https://www.domain.com'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants