<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aben</title>
    <description>The latest articles on DEV Community by Aben (@azizabenzhirou).</description>
    <link>https://dev.to/azizabenzhirou</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1025079%2F3c50c81e-42b9-44a0-8e01-92d4c21a5e60.jpeg</url>
      <title>DEV Community: Aben</title>
      <link>https://dev.to/azizabenzhirou</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/azizabenzhirou"/>
    <language>en</language>
    <item>
      <title>im getting an error :"401 not authorized, no token", when I try to make a put request</title>
      <dc:creator>Aben</dc:creator>
      <pubDate>Mon, 25 Sep 2023 14:58:43 +0000</pubDate>
      <link>https://dev.to/azizabenzhirou/im-getting-an-error-401-not-authorized-no-token-when-i-try-to-make-a-put-request-485o</link>
      <guid>https://dev.to/azizabenzhirou/im-getting-an-error-401-not-authorized-no-token-when-i-try-to-make-a-put-request-485o</guid>
      <description>&lt;p&gt;hello guys, &lt;br&gt;
im encounting a problem as mention above when I try to update my profile using a put request &lt;br&gt;
the token is stored in the local storage and I'm sending it along in the authorization header &lt;br&gt;
so when i send the request and inspect the network tab i can see that the authorization heaser is not present in the request headers, and i don't know why ,&lt;br&gt;
please, could someone help me&lt;/p&gt;

&lt;p&gt;here is my back end: &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xSnc4eoE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yg6qofkwfq6lro44ml6g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xSnc4eoE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yg6qofkwfq6lro44ml6g.png" alt="Image description" width="800" height="888"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and here is the middleware I'm using: &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cpBe1Qwm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgea1v84u3971fkow9ts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cpBe1Qwm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgea1v84u3971fkow9ts.png" alt="Image description" width="800" height="735"&gt;&lt;/a&gt;&lt;br&gt;
here is the front end :&lt;/p&gt;

&lt;p&gt;and for state management I'm using redux :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CXSdjM2n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7foa3bugtg7aiydb4m3c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CXSdjM2n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7foa3bugtg7aiydb4m3c.png" alt="Image description" width="800" height="752"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0lB0-4nQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xwvllvque46ohyv6k0tv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0lB0-4nQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xwvllvque46ohyv6k0tv.png" alt="Image description" width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ag5MFrPq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16n04q2so21jp1biar56.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ag5MFrPq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16n04q2so21jp1biar56.png" alt="Image description" width="800" height="1333"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>express</category>
      <category>node</category>
      <category>reactjsdevelopment</category>
      <category>redux</category>
    </item>
  </channel>
</rss>
