Skip to content

Commit

Permalink
Fix Cross Origin Error on Images
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-oc-mentorship authored Feb 3, 2023
1 parent 84d5c63 commit 4b54c31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const app = express()
app.use(cors())
app.use(express.json())
app.use(express.urlencoded({ extended: true }))
app.use(helmet());
app.use(helmet({
crossOriginResourcePolicy: false,
}));
app.use('/images', express.static(path.join(__dirname, 'images')))

const db = require("./models");
Expand Down

0 comments on commit 4b54c31

Please sign in to comment.