From 99640766870d4b278ea6767b1d950a6da1f78c78 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Fri, 6 Aug 2021 13:44:15 -0700 Subject: [PATCH] Added CORS configuration --- services/api.service.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/services/api.service.ts b/services/api.service.ts index 897a7bb..6ecb61f 100644 --- a/services/api.service.ts +++ b/services/api.service.ts @@ -19,6 +19,20 @@ export default class ApiService extends Service { whitelist: ["**"], use: [], mergeParams: true, + cors: { + origin: "*", + methods: [ + "GET", + "OPTIONS", + "POST", + "PUT", + "DELETE", + ], + allowedHeaders: ["*"], + exposedHeaders: [], + credentials: false, + maxAge: 3600, + }, authentication: false, authorization: false,