<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Use Fonts locally or from portal (CORS error) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678609#M88073</link>
    <description>&lt;P&gt;We did some further efforts without much luck but may found a bug on how portal works regarding fonts.&lt;BR /&gt;So for short use we are using the fonts directly locally in the app which is a workaround. But reading from portal would be the preferred way as fat as I understand the documentation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;BR /&gt;Documentation is a good point. I found two places with kinda misleading information:&lt;BR /&gt;a) this one shows urls with `//myserver/fonts` but no sample for using the portal fonts&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl&lt;/A&gt;&lt;BR /&gt;b) while this one shows urls with `//portal/apps/fonts` which is the correct path&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt;&lt;BR /&gt;I test the app local dev using VS Code which opens the app on localhost:4200 + a deployment on an IIS.&lt;BR /&gt;For test I excluded *arcgis.com from proxy such that it is not accessible.&lt;BR /&gt;This intended leads to the following http error:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;GET https://static.arcgis.com/fonts/arial-regular/0-255.pbf net::ERR_NAME_NOT_RESOLVED&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;My attempts to load fonts are&lt;BR /&gt;a - locally delivered by app&lt;BR /&gt;b - provided as own folter on IIS&lt;BR /&gt;c - read from portal&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.fontsUrl = esriConfig.portalUrl + '/apps/fonts';&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;2a) local delivery&lt;/STRONG&gt;&lt;BR /&gt;As info provided by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;it works good and is the short workaround now.&lt;BR /&gt;I set&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.fontsUrl = './assets/fonts'&lt;/LI-CODE&gt;&lt;P&gt;where assets is a direct subfolder of the ts-file (serc/app/app.config.ts) I am setting this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_0-1768824206933.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146946i4472454F2C52805C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_0-1768824206933.png" alt="SebastianKrings_0-1768824206933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This for I copied fonts from portal folder from the machine where we installed the portal under:&lt;BR /&gt;C:\Program Files\ArcGIS\Portal\apps\fonts&lt;/P&gt;&lt;P&gt;Done and working.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2b) Host dedicated folder on IIS&lt;/STRONG&gt;&lt;BR /&gt;- create new folder under IIS:&lt;BR /&gt;C:\inetpub\wwwroot\esri_fonts&lt;BR /&gt;- Again copy fonts into this new folder from portal folder:&lt;BR /&gt;C:\Program Files\ArcGIS\Portal\apps\fonts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_1-1768824501550.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146947i4BE134D8E48E2078/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_1-1768824501550.png" alt="SebastianKrings_1-1768824501550.png" /&gt;&lt;/span&gt;&lt;BR /&gt;- On IIS Manager add CORS Header to HTTP-Response-Headers:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Access-Control-Allow-Credentials = true
Access-Control-Allow-Origin = http://localhost:4200&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_2-1768824636360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146948i78CF54CA4570DFB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_2-1768824636360.png" alt="SebastianKrings_2-1768824636360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- This time setting the fontsUrl to:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.fontsUrl = 'https://my.machine.local/esri_fonts'&lt;/LI-CODE&gt;&lt;P&gt;Done and working.&lt;/P&gt;&lt;P&gt;2c) Read from Portal&lt;BR /&gt;- At first setting the fontsUrl to:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.fontsUrl = esriConfig.portalUrl + '/apps/fonts';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;- Now I get the following http errors:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Access to fetch at 'https://my.machine.local/portal/apps/fonts/arial-unicode-ms-regular/0-255.pbf' from origin 'http://localhost:4200' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.&lt;/LI-CODE&gt;&lt;P&gt;As already mentioned I assume this is about the portal settings where no allowed origin is set yet and therefore * is given as header value.&lt;BR /&gt;On Portal/Settings/Security/Allow Origin I tried the following entries:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;http://localhost
http://localhost/
http://localhost:4200
http://localhost:4200/&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_3-1768827994872.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146949i5FCAF174302917EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_3-1768827994872.png" alt="SebastianKrings_3-1768827994872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I still get the same CORS errors as before.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_4-1768828556128.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146950i64E3A411F0C151CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_4-1768828556128.png" alt="SebastianKrings_4-1768828556128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I found this file:&lt;BR /&gt;C:\Program Files\ArcGIS\Portal\framework\webapps\rootapp\WEB-INF\urlrewrite.xml&lt;BR /&gt;Which contains this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  &amp;lt;rule&amp;gt;
    &amp;lt;from&amp;gt;.*&amp;lt;/from&amp;gt;
    &amp;lt;set type="response-header" name="Vary"&amp;gt;Origin&amp;lt;/set&amp;gt;
    &amp;lt;set type="response-header" name="Access-Control-Allow-Origin"&amp;gt;*&amp;lt;/set&amp;gt;
  &amp;lt;/rule&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;When commenting out and restarting the server in appears again, seems the portal repairs itself.&lt;BR /&gt;I am wondering why * is given here since * is not allowed any more at all as far as I know.&lt;BR /&gt;I am not sure whether this is the cause of my problem.&lt;BR /&gt;May this is a bug in the portal where pointing to the fonts folder is not supported/tested any more?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jan 2026 11:36:05 GMT</pubDate>
    <dc:creator>SebastianKrings</dc:creator>
    <dc:date>2026-01-21T11:36:05Z</dc:date>
    <item>
      <title>Use Fonts locally or from portal (CORS error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1677793#M88065</link>
      <description>&lt;P&gt;When using labels on features fonts are needed and loaded from arcgis.com.&lt;/P&gt;&lt;P&gt;In closed environments without internet access this leads to an erorr while performing the get request and the features are shown without their labels.&lt;/P&gt;&lt;P&gt;To fix that there are two possible ways as fas as I know.&lt;/P&gt;&lt;P&gt;Either download them and put them somewhere and somewhow in the static folder.&lt;BR /&gt;Or link the fontsUrl to the portal.&lt;/P&gt;&lt;P&gt;I fail with both and hope to get help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;How do I download the fonts and place them locally into the JS App statics folder such that no fonts need to be loaded somewhere else?&lt;BR /&gt;I guess I then need to link the esriConfig.fontsUrl to this local path. How exactly does this local path then look like?&lt;/P&gt;&lt;P&gt;1b)&lt;BR /&gt;Is there any way to omit the esriConfig.fontsUrl by only using the esriConfig.assetsPath?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&lt;BR /&gt;When linking the&amp;nbsp;esriConfig.fontsPath to the portal I am receiving CORS errors.&lt;BR /&gt;In first instance I am developing on localhost.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_0-1768394978273.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146763i56152505D1ADB9ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_0-1768394978273.png" alt="SebastianKrings_0-1768394978273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I guess I need to change some settings in the portal.&lt;BR /&gt;I also found this setting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_1-1768395084385.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146764iEAC1E47C24667E2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_1-1768395084385.png" alt="SebastianKrings_1-1768395084385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But as one can see its empty. From the description saying to "limit" means for me having no entries at all means "unlimited".&lt;BR /&gt;&lt;BR /&gt;Can this cause the * in the response header claimed by the error above?&lt;BR /&gt;When I try to put in my domain "localhost" "localhost:4200" "&lt;A href="http://localhost:4200" target="_blank"&gt;http://localhost:4200&lt;/A&gt;" "&lt;A href="http://localhost" target="_blank"&gt;http://localhost&lt;/A&gt;" that does not work, because I then am getting a general CORS error to be blocked.&lt;BR /&gt;&lt;BR /&gt;Also putting our Webserver where the app is deployed (my.server.local) does not even allow this app. It also stays blocked by these settings.&lt;/P&gt;&lt;P&gt;Seems I missunderstood this setting.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 12:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1677793#M88065</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2026-01-14T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use Fonts locally or from portal (CORS error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678289#M88069</link>
      <description>&lt;P&gt;We too have had a need to host the font files locally.&amp;nbsp; The images below show our folder structure, where the "Website" folder is the root directory of our website, and then you see further subdirectories "jsapi" and "fonts".&amp;nbsp; It is this "fonts" folder in which we've organized the font files in the same manner as seen on Esri's site.&lt;/P&gt;&lt;P&gt;In the code, we just add the following, and it works:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.fontsUrl = "/jsapi/fonts";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your application is on a different server than the fonts, you'd have to use an absolute URL, e.g.:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.fontsUrl = "https://myServer/jsapi/fonts";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image1.png" style="width: 959px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146886iFE82E912F4A338BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image1.png" alt="image1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image2.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146887iCFB51262D1C9B3FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image2.png" alt="image2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 00:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678289#M88069</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2026-01-16T00:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use Fonts locally or from portal (CORS error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678545#M88071</link>
      <description>&lt;P&gt;Thanks, thats great.&lt;BR /&gt;Do you know whether&amp;nbsp;&lt;SPAN&gt;esriConfig.fontsUrl is mandatory or whether it is also possible to place it under&amp;nbsp;esriConfig.assetsPath instead?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jan 2026 20:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678545#M88071</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2026-01-18T20:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use Fonts locally or from portal (CORS error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678609#M88073</link>
      <description>&lt;P&gt;We did some further efforts without much luck but may found a bug on how portal works regarding fonts.&lt;BR /&gt;So for short use we are using the fonts directly locally in the app which is a workaround. But reading from portal would be the preferred way as fat as I understand the documentation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;BR /&gt;Documentation is a good point. I found two places with kinda misleading information:&lt;BR /&gt;a) this one shows urls with `//myserver/fonts` but no sample for using the portal fonts&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl&lt;/A&gt;&lt;BR /&gt;b) while this one shows urls with `//portal/apps/fonts` which is the correct path&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt;&lt;BR /&gt;I test the app local dev using VS Code which opens the app on localhost:4200 + a deployment on an IIS.&lt;BR /&gt;For test I excluded *arcgis.com from proxy such that it is not accessible.&lt;BR /&gt;This intended leads to the following http error:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;GET https://static.arcgis.com/fonts/arial-regular/0-255.pbf net::ERR_NAME_NOT_RESOLVED&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;My attempts to load fonts are&lt;BR /&gt;a - locally delivered by app&lt;BR /&gt;b - provided as own folter on IIS&lt;BR /&gt;c - read from portal&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.fontsUrl = esriConfig.portalUrl + '/apps/fonts';&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;2a) local delivery&lt;/STRONG&gt;&lt;BR /&gt;As info provided by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;it works good and is the short workaround now.&lt;BR /&gt;I set&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;esriConfig.fontsUrl = './assets/fonts'&lt;/LI-CODE&gt;&lt;P&gt;where assets is a direct subfolder of the ts-file (serc/app/app.config.ts) I am setting this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_0-1768824206933.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146946i4472454F2C52805C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_0-1768824206933.png" alt="SebastianKrings_0-1768824206933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This for I copied fonts from portal folder from the machine where we installed the portal under:&lt;BR /&gt;C:\Program Files\ArcGIS\Portal\apps\fonts&lt;/P&gt;&lt;P&gt;Done and working.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2b) Host dedicated folder on IIS&lt;/STRONG&gt;&lt;BR /&gt;- create new folder under IIS:&lt;BR /&gt;C:\inetpub\wwwroot\esri_fonts&lt;BR /&gt;- Again copy fonts into this new folder from portal folder:&lt;BR /&gt;C:\Program Files\ArcGIS\Portal\apps\fonts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_1-1768824501550.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146947i4BE134D8E48E2078/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_1-1768824501550.png" alt="SebastianKrings_1-1768824501550.png" /&gt;&lt;/span&gt;&lt;BR /&gt;- On IIS Manager add CORS Header to HTTP-Response-Headers:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Access-Control-Allow-Credentials = true
Access-Control-Allow-Origin = http://localhost:4200&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_2-1768824636360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146948i78CF54CA4570DFB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_2-1768824636360.png" alt="SebastianKrings_2-1768824636360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- This time setting the fontsUrl to:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.fontsUrl = 'https://my.machine.local/esri_fonts'&lt;/LI-CODE&gt;&lt;P&gt;Done and working.&lt;/P&gt;&lt;P&gt;2c) Read from Portal&lt;BR /&gt;- At first setting the fontsUrl to:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;esriConfig.fontsUrl = esriConfig.portalUrl + '/apps/fonts';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;- Now I get the following http errors:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Access to fetch at 'https://my.machine.local/portal/apps/fonts/arial-unicode-ms-regular/0-255.pbf' from origin 'http://localhost:4200' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.&lt;/LI-CODE&gt;&lt;P&gt;As already mentioned I assume this is about the portal settings where no allowed origin is set yet and therefore * is given as header value.&lt;BR /&gt;On Portal/Settings/Security/Allow Origin I tried the following entries:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;http://localhost
http://localhost/
http://localhost:4200
http://localhost:4200/&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_3-1768827994872.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146949i5FCAF174302917EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_3-1768827994872.png" alt="SebastianKrings_3-1768827994872.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I still get the same CORS errors as before.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SebastianKrings_4-1768828556128.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146950i64E3A411F0C151CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SebastianKrings_4-1768828556128.png" alt="SebastianKrings_4-1768828556128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I found this file:&lt;BR /&gt;C:\Program Files\ArcGIS\Portal\framework\webapps\rootapp\WEB-INF\urlrewrite.xml&lt;BR /&gt;Which contains this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  &amp;lt;rule&amp;gt;
    &amp;lt;from&amp;gt;.*&amp;lt;/from&amp;gt;
    &amp;lt;set type="response-header" name="Vary"&amp;gt;Origin&amp;lt;/set&amp;gt;
    &amp;lt;set type="response-header" name="Access-Control-Allow-Origin"&amp;gt;*&amp;lt;/set&amp;gt;
  &amp;lt;/rule&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;When commenting out and restarting the server in appears again, seems the portal repairs itself.&lt;BR /&gt;I am wondering why * is given here since * is not allowed any more at all as far as I know.&lt;BR /&gt;I am not sure whether this is the cause of my problem.&lt;BR /&gt;May this is a bug in the portal where pointing to the fonts folder is not supported/tested any more?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 11:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678609#M88073</guid>
      <dc:creator>SebastianKrings</dc:creator>
      <dc:date>2026-01-21T11:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use Fonts locally or from portal (CORS error)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678829#M88075</link>
      <description>&lt;P&gt;Yes, you'll need to set&amp;nbsp;&lt;SPAN&gt;esriConfig.fontsUrl no matter what.&amp;nbsp; However, I suppose that if you organize your fonts under the same location as referred to by assetsPath, then you'd set fontsUrl and assetsPath to the same value.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 18:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-fonts-locally-or-from-portal-cors-error/m-p/1678829#M88075</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2026-01-20T18:26:16Z</dc:date>
    </item>
  </channel>
</rss>

