fix: fix CORS import
All checks were successful
Update changelog / changelog (push) Successful in 25s
All checks were successful
Update changelog / changelog (push) Successful in 25s
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import * as dotenv from 'dotenv';
|
import * as dotenv from 'dotenv';
|
||||||
dotenv.config({ quiet: true });
|
dotenv.config({ quiet: true });
|
||||||
|
|
||||||
import cors from 'cors';
|
let cors = require('cors');
|
||||||
import { getEnvString } from './jwt';
|
import { getEnvString } from './jwt';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +10,7 @@ import { getEnvString } from './jwt';
|
|||||||
*
|
*
|
||||||
* @return {string[]} A list of user-trusted origins.
|
* @return {string[]} A list of user-trusted origins.
|
||||||
*/
|
*/
|
||||||
function getTrustedOrigins(): string[] {
|
export function getTrustedOrigins(): string[] {
|
||||||
let trustedOrigins: string[] = ['http://localhost:6568'];
|
let trustedOrigins: string[] = ['http://localhost:6568'];
|
||||||
const configOriginsString: string | undefined = getEnvString('trustedOrigins', true);
|
const configOriginsString: string | undefined = getEnvString('trustedOrigins', true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user