Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70860

Refused to set unsafe header “Cookie" error

$
0
0

@baadier wrote:

I’m trying to make a get request to a API that requires a cookie.

I get a Refused to set unsafe header “Cookie" error

I’m using the Chrome extension for CORS and dont own the API

headers.append(‘Cookie’,’Cookie value’);

let options = new RequestOptions({
     headers: headers,
     withCredentials: true
   });

   var response = this.http
       .get('website', options)
       .map(res => {
           return res;
       })

thats the main bit. Atm i login via PAW(software) while I test. I receive the cookie data and then include it in headers.append(‘Cookie’,’Cookie value’);

Any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>