diff --git a/utils/protectedRoutes.js b/utils/protectedRoutes.js index 8506af51..35e52ea4 100644 --- a/utils/protectedRoutes.js +++ b/utils/protectedRoutes.js @@ -25,7 +25,16 @@ module.exports = { "/api/encryption/exchange": true }, PUT: {}, - DELETE: {} + DELETE: {}, + // Preflight request (CORS) + get OPTIONS() { + return { + ...this.POST, + ...this.GET, + ...this.PUT, + ...this.DELETE + } + } }, sensitiveRoutes: { GET: {},