diff --git a/packages/contact-manager-rest-api/__tests__/RestAPI.ts b/packages/contact-manager-rest-api/__tests__/RestAPI.ts index 5b6616d63..79e6fbb42 100644 --- a/packages/contact-manager-rest-api/__tests__/RestAPI.ts +++ b/packages/contact-manager-rest-api/__tests__/RestAPI.ts @@ -1,13 +1,15 @@ +import {ExpressCorsConfigurer} from "../../ssi-express-support/src"; import { ExpressBuilder } from '../../ssi-express-support/src' import { ContactManagerApiServer } from '../src' import agent from './agent' const builder = ExpressBuilder.fromServerOpts({ - port: 5000, + port: 5010, hostname: '0.0.0.0', }) .withMorganLogging({ format: 'dev' }) .withPassportAuth(false) + .withCorsConfigurer(new ExpressCorsConfigurer().allowOrigin('*')) const expressSupport = builder.build({ startListening: true })