Enabling CORS
1 min read Last updated Jan 9, 2025
If you are having difficulty enabling CORS…
- Make sure to enable/accept those kinds of requests. It’s not NC directly, but rather the browsers themselves checking if any kind of request is allowed in the first place
- To do this, (according to the source code) you may need to add this env variable:
LOCALAI_CORS=trueLOCALAI_CORS_ALLOW_ORIGINS=https://app.novelcrafter.com/