Skip to content

Commit

Permalink
HIPCMS-424 allow all origins to prevent CORS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maltehol committed Aug 30, 2016
1 parent 36acdc9 commit 35ee45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const appRoutingProviders: any[] = [
headerPrefix: 'Bearer',
tokenName: 'id_token',
tokenGetter: (() => localStorage.getItem('id_token')),
globalHeaders: [{ 'Content-Type': 'application/x-www-form-urlencoded' }],
globalHeaders: [{ 'Content-Type': 'application/x-www-form-urlencoded', 'Access-Control-Allow-Origin': '*' }],
noJwtError: true,
noTokenScheme: true
})
Expand Down

0 comments on commit 35ee45d

Please sign in to comment.