Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Include credentials to pass cookies in request header

Hi! ,


I have been trying to allow crendetials in my request so i can pass my cookie with my fetch request and already configured my backend ( configured with express session ) with origin as which is wrong since origin is null inside a sandbox ( i tried to set origin as * include wont work that way )  , Do you guys have any idea how to do this?


Fetch request inside my custom visual :


public fetch = () => {  
        method: "GET",
        credentials: "include",   
      .then((response) => {
        return response.json();
      .then((test) => console.log(test));


Backend cors :


    origin: '*',
    credentials: true,




Helpful resources

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors