Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Cors Error #187

Closed
bastianhilton opened this issue Mar 30, 2023 · 2 comments
Closed

Cors Error #187

bastianhilton opened this issue Mar 30, 2023 · 2 comments

Comments

@bastianhilton
Copy link

Hello i'm receiving a cors error when attempting to connect using the Nuxt-Directus module yet in the examples there is no cors option, what am I missing?

This is my nuxt.config section with directus:

directus: {
    url: process.env.DIRECTUS_URL,
    auth: {
      email: process.env.DIRECTUS_EMAIL,
      password: process.env.DIRECTUS_PASSWORD,
      token: process.env.DIRECTUS_TOKEN,
    }
  },
@github-actions
Copy link

Linear: ENG-852

@paescuj
Copy link
Contributor

paescuj commented May 18, 2023

If you're using the example setup from this repo this has now been addressed in #190. See also the documentation: https://docs.directus.io/self-hosted/config-options.html#cors

@paescuj paescuj closed this as completed May 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants