mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
「🔨」 fix: changed to env
This commit is contained in:
@ -24,3 +24,5 @@ SMTP_FROM=<the address to send from>
|
|||||||
SMTP_AUTH_USERNAME=<smtp-user>
|
SMTP_AUTH_USERNAME=<smtp-user>
|
||||||
SMTP_AUTH_PASSWORD=<smtp pass>
|
SMTP_AUTH_PASSWORD=<smtp pass>
|
||||||
EMAIL_TO=<mail to send to>
|
EMAIL_TO=<mail to send to>
|
||||||
|
|
||||||
|
CORS_ORIGIN=<the url of origin for cors>
|
||||||
|
|||||||
@ -24,7 +24,7 @@ authDB.prepareDB();
|
|||||||
export default async function(fastify, options) {
|
export default async function(fastify, options) {
|
||||||
|
|
||||||
fastify.register(cors, {
|
fastify.register(cors, {
|
||||||
origin: "http://localhost:5173",
|
origin: process.ENV.CORS_ORIGIN || '*',
|
||||||
credentials: true,
|
credentials: true,
|
||||||
methods: [ "GET", "POST", "DELETE", "OPTIONS" ]
|
methods: [ "GET", "POST", "DELETE", "OPTIONS" ]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user