credentials header

This commit is contained in:
vigdorov
2020-07-03 22:51:56 +03:00
parent 0ddee4a35c
commit 9238629bd1
3 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
export const DB_NAME = '/store-service';
export const MONGO_URL = `mongodb://localhost:27017${DB_NAME}`;
export const ALLOW_ORIGIN_ALL: [string, string] = ['Access-Control-Allow-Origin', '*'];
export const ALLOW_CREDENTIALS: [string, string] = ['Access-Control-Allow-Credentials', 'true'];
export const ALLOW_METHOD: [string, string] = ['Access-Control-Request-Method', 'POST DELETE PUT GET'];