Skip to content

Commit

Permalink
Update cors.middle.ts
Browse files Browse the repository at this point in the history
editing cors varible global " front_url " is not defiend
  • Loading branch information
SevenProxy authored Dec 20, 2023
1 parent 20a3ac5 commit 16c6a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infra/middleware/cors.middle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as dotenv from "dotenv";
import { ResponseCors } from "../../dtos/types/props.middle";
dotenv.config();

const isPermit: string | undefined = process.env.SITE_FRONT ?? "http://localhost:300";
const isPermit: string | undefined = process.env.FRONT_URL ?? "http://localhost:300";


const responseCors: ResponseCors = {
Expand Down

0 comments on commit 16c6a05

Please sign in to comment.