Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Commit 991af7b

Browse files
committed
fix(cors): Use withCredentials: true for requests so CORS works
#28
1 parent c4b52a1 commit 991af7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stormpath/stormpath.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ let APPLICATION_JSON: string = 'application/json';
1919
class JsonGetOptions extends RequestOptions {
2020
constructor() {
2121
super({
22-
headers: new Headers({ 'Accept': APPLICATION_JSON })
22+
headers: new Headers({ 'Accept': APPLICATION_JSON }),
23+
withCredentials: true
2324
});
2425
}
2526
}

0 commit comments

Comments
 (0)