gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[reclaim-ui] 09/459: fix cors


From: gnunet
Subject: [reclaim-ui] 09/459: fix cors
Date: Fri, 11 Jun 2021 23:21:41 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.

commit 848784255739bd91a0bbe112909439c06b45c821
Author: Schanzenbach, Martin <mschanzenbach@posteo.de>
AuthorDate: Mon Nov 26 17:58:39 2018 +0100

    fix cors
---
 src/app/open-id.service.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/app/open-id.service.ts b/src/app/open-id.service.ts
index fce807d..aea428a 100644
--- a/src/app/open-id.service.ts
+++ b/src/app/open-id.service.ts
@@ -1,5 +1,6 @@
 import { Injectable } from '@angular/core';
 import { HttpClient } from '@angular/common/http';
+import { HttpHeaders } from '@angular/common/http';
 import { Identity } from './identity';
 import { ConfigService } from './config.service';
 import { Router } from '@angular/router';
@@ -13,7 +14,10 @@ export class OpenIdService {
     private router: Router) { }
 
   login(identity: Identity) {
-    return this.http.post(this.config.get().apiUrl + '/openid/login', { 
'identity': identity.pubkey});
+    const httpOptions = {
+      withCredentials: true
+    };
+    return this.http.post(this.config.get().apiUrl + '/openid/login', { 
'identity': identity.pubkey}, httpOptions);
   }
 
   parseRouteParams(params: any): any {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]