mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-12-31 21:56: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_PASSWORD=<smtp pass>
|
||||
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) {
|
||||
|
||||
fastify.register(cors, {
|
||||
origin: "http://localhost:5173",
|
||||
origin: process.ENV.CORS_ORIGIN || '*',
|
||||
credentials: true,
|
||||
methods: [ "GET", "POST", "DELETE", "OPTIONS" ]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user