<?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: Roberto Leibman</title>
    <description>The latest articles on DEV Community by Roberto Leibman (@rleibman).</description>
    <link>https://dev.to/rleibman</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%2F693954%2F7c7aa893-4504-40ab-ab79-11f244ab9e5e.jpeg</url>
      <title>DEV Community: Roberto Leibman</title>
      <link>https://dev.to/rleibman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rleibman"/>
    <language>en</language>
    <item>
      <title>lazy load with http header?</title>
      <dc:creator>Roberto Leibman</dc:creator>
      <pubDate>Mon, 13 Jun 2022 17:16:05 +0000</pubDate>
      <link>https://dev.to/rleibman/lazy-load-with-http-header-5ffd</link>
      <guid>https://dev.to/rleibman/lazy-load-with-http-header-5ffd</guid>
      <description>&lt;p&gt;Hey.... I'm working on an app, I want to lazy load a separate bundle, but want to make sure the lazy load contains a specific http header (a bearer token). &lt;/p&gt;

&lt;p&gt;The reason for this question (in case I'm barking up the wrong tree) is that I want my login bundle to be publically accessible, but the main app to only be accessible once the login has been successful. Using React.lazy(() =&amp;gt; import("./pages/Dashboard")); sounds promising, but I'm not sure if there's a way to add my header (I also looked at react-loadable.... same issue)&lt;/p&gt;

</description>
      <category>react</category>
    </item>
  </channel>
</rss>
