Skip to content

Commit

Permalink
chore: Add cors for Contacts API test
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Sep 12, 2023
1 parent 56c584c commit a177c52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/contact-manager-rest-api/__tests__/RestAPI.ts
Original file line number Diff line number Diff line change
@@ -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 })

Expand Down

0 comments on commit a177c52

Please sign in to comment.