set withCredentials to the new ES6 built-in HTTP request API : Fetch

前端 未结 1 1714
旧巷少年郎
旧巷少年郎 2020-12-06 09:30

How to set withCredentials=true to fetch which return promise. Is the following correct :

fetch(url,{
   method:\'post\',
   headers,
   withC         


        
相关标签:
1条回答
  • 2020-12-06 10:00

    Got it here :

      credentials: 'include'
    

    and not

      withCredentials: true
    
    0 讨论(0)
提交回复
热议问题