Skip to content

Commit

Permalink
Disable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
nadnad committed Oct 10, 2023
1 parent b73282e commit c3c1e23
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions backend/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ import { frontendPort, getBackendPort } from "../src/utils/portUtils";
require("dotenv").config();

const corsOption = {
origin: "https://frontend-cypress-realworld-app-cypress-realworld-ap-pr1.dev.shipyardbuild.shipyard.host",
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
allowedHeaders: ["Content-Type", "Authorization"],
exposedHeaders: ["Content-Encoding"],
credentials: true,
preflightContinue: true,
origin: false,
};

const schema = loadSchemaSync(join(__dirname, "./graphql/schema.graphql"), {
Expand Down

0 comments on commit c3c1e23

Please sign in to comment.