# Narrative Web/ Openstreeetmap referer

**URL:** <https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958>\
**Category:** Help\
**Created:** [September 8, 2026, 11:47am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958 "2026-09-08T11:47:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 8, 2026, 11:47am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/1 "2026-09-08T11:47:15Z")

</div>

Ran Narrative Web today got the following error message for Heatmaps and Places.

"Referer is required by tile usage policy of Openstreetmap’s volunteer-run servers: osm.wiki/Blocked

Looking this up gives

### Referer is required

[![403r. Access blocked. Referer is required by tile usage policy of OpenStreetMap's volounteer-run servers: osm.wiki/Blocked](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/a/ae7eec4fc93f9d3972ac1662a138cc7ad90487f7.png)](https://wiki.openstreetmap.org/wiki/File:403r_tile.png)

If _and only if_ the tile mentions “_Referer is required_” then you were automatically blocked because your application/website is not sending HTTP `Referer` headers, but doing so is required by the tile usage policy. This block will resolve itself once you make the necessary changes to your application, without further intervention necessary.

For websites/web applications, this can be fixed by setting your `Referrer-Policy` header to any of `no-referrer-when-downgrade`, `origin`, `origin-when-cross-origin`, `strict-origin`, or `strict-origin-when-cross-origin`.

In map libraries, such as Leaflet, you can specify an option [referrerPolicy](https://leafletjs.com/reference.html#tilelayer-referrerpolicy) for the OSM layer.

Has anybody else come across this if so is there a fix

thanks phil

Gramps 6.0.6

Python: 3.13.5  
sqlite: 3.46.1  
orjson: 3.10.7  
LANG: en\_GB.UTF-8  
OS: Linux  
Distribution: 6.12.107+deb13-amd64

---

<div class="post-metadata">

**Author:** ![F1Fan](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@F1Fan](https://gramps.discourse.group/u/F1Fan)\
**Post date:** [September 8, 2026, 3:20pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/2 "2026-09-08T15:20:47Z")

</div>

Hi, This also happened with another genealogy software I use and programs that use Openstreet maps as they seem to have clamped down on usage terms. Not sure if any have resolved the issues as one program I use still has a large area down the middle of the UK not accessable for GPS data & map tracking.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 8, 2026, 4:18pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/3 "2026-09-08T16:18:08Z")

</div>

Thanks for that, have tried looking for a fix but so far they appear to  
me as if written in Swahili (no insult intended to Swahili speakers).  
Will carry on looking for the “For Dummies” version.  
phil

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 9, 2026, 8:09am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/4 "2026-09-09T08:09:47Z")

</div>

So continuing to chase this instead of using Firefox Browser I used Chromium and with Chromium no problems encountered.

Firefox checked “referer” setting and is currently “strict-origin-when-cross-origin” which is the default and openstreetmap recommendation.

Will do some further work and get back

phil

---

<div class="post-metadata">

**Author:** ![pgerlier](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pgerlier](https://gramps.discourse.group/u/pgerlier)\
**Post date:** [September 9, 2026, 8:58am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/5 "2026-09-09T08:58:19Z")

</div>

My NarrativeWeb was generated with Gramps 6.0.8. I use Firefox 155.0 on my Fedora 44 Linux machine.

I just checked that the request for a place include a _Referer:[https://localhost/…/places.html](https://localhost/%E2%80%A6/places.html)_ HTTP header. The page for the place displays with the OpenStreetMap. Same when I reference a place from a person or family, _Referer_ is included.

Referrer policy is _strict-origin-when-cross-origin_.

I see you are under 6.0.6. There might have been a fix; I didn’t check in my local Git repo.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 9, 2026, 9:37am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/6 "2026-09-09T09:37:29Z")

</div>

Thanks Patrick

I am now somewhat convinced it is not a GRAMPS issue on Chromium it  
works just fine with exactly the same Referer Policy as on Firefox.  
Your assurance about working with 155 ver Firefox leads me to suspect my  
settings on Firefox.  
Where did you add your localhost setting  
phil

---

<div class="post-metadata">

**Author:** ![pgerlier](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pgerlier](https://gramps.discourse.group/u/pgerlier)\
**Post date:** [September 10, 2026, 8:36am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/7 "2026-09-10T08:36:51Z")

</div>

> [@comeng](#):
>
> Where did you add your localhost setting

Nowhere. The referrer policy was reported by the Firefox debug tools. I was not even aware of this setting. As a general rule, for reliability and stability, I try not to customise applications except when I really need it And in this case, I proceed with _Preferences_, not through _about:config_.

My NarrativeWeb is served by _NginX_. The configuration has no parameter for origin/cross-origin. So, this is internal to Firefox.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 10, 2026, 10:04am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/8 "2026-09-10T10:04:02Z")

</div>

I was beginning to suspect you were using a local webserver and hence  
the difference I am opening the file locally no server connections  
except when I look for Maps using OSM tiles.  
The issue I cannot resolve yet is why Chromium works and Firefox does  
not will continue pursuing this. Have looked at the Openstreet forum  
where this has been raised and they admit they have no fix to date in  
fact some people have given and changed mapping site.  
phil

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 10, 2026, 6:13pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/9 "2026-09-10T18:13:48Z")

</div>

Have had conversation on Openstreet Community Forum a couple of people  
have confirmed that it will not work on Firefox and there is currently  
no fix suggestion available via them.  
So now I will move to communicating with the Firefox community although  
previous experience here was not always good will give it a try and  
report back.  
phil

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 11, 2026, 8:05am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/10 "2026-09-11T08:05:04Z")

</div>

After a suggestion from a respondent on OpenStreetMap

Work round for Firefox not opening local files with OpenStreetMap tiles.

The issue is the Firefox “User Agent” not allowing Referer Policy to  
work and a solution is to change it for the Chrome User Agent  
This is only a partial fix because although the map is visible depending  
on Scrolling In/Out the error message can appear and eventually the map  
disappear.  
Implementation Steps

1. CTRL+SHIFT+M takes you to the Responsive Design Mode  
Alternatively goto More Tools, Responsive Design Mode  
Which Displays another MenuBar

2. Goto Settings (Gear Cog between Camera and Close icons right hand end

3. Click Up/Down Arrows next to UA Custom User Agent Box

4. Select Chrome

You will then have to sort your screen size at left hand end of menubar.  
This is really all about accommodating mobile phones.  
phil

---

<div class="post-metadata">

**Author:** ![pgerlier](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pgerlier](https://gramps.discourse.group/u/pgerlier)\
**Post date:** [September 11, 2026, 9:56am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/11 "2026-09-11T09:56:46Z")

</div>

> [@comeng](#):
>
> I was beginning to suspect you were using a local webserver and hence  
> the difference I am opening the file locally no server connections

Gotcha! You’re spot on.

I went to my NarrativeWeb with `File` → `Open File` and I get your behaviour: no OSM map display.

I understand now why my relatives to whom I sent my NW tree could not see the maps (they are not computer-oriented and totally unable to set up a server; so they open files with their browsers). I also understand why my Gramps demos for local genealogy clubs did not work when maps were concerned: I made a fleshed-out copy on my laptop without setting up a server.

Thanks for the explanation.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [September 11, 2026, 11:16am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/12 "2026-09-11T11:16:26Z")

</div>

I figured out how to show the maps using this workaround.

I made the changes. Closed and relaunched Firefox. Opened my family tree link (stored locally on hard drive) and the map was still 403r.

To make it work, you have to do the CTRL+SHIFT+M, and then launch your website. And you need to do this each time!!!

It is easier to open the website on Chrome or Edge.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 11, 2026, 12:21pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/13 "2026-09-11T12:21:35Z")

</div>

Patrick  
Your uses are I suspect precisely why Narrative Web Report was  
implemented as it is and is how I use it. For the none computer literate  
population.  
Dave  
So on my version of Firefox once configured (unless you specifically  
revert) it is retained as the default  
I think I will just use Chromium for this, for the foreseeable future  
phil

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [September 11, 2026, 1:22pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/14 "2026-09-11T13:22:07Z")

</div>

> [@comeng](#):
>
> So on my version of Firefox once configured (unless you specifically  
> revert) it is retained as the default

Yes. The Chrome workspace was retained.

But to open my Narrweb tomorrow, I need to first do CTRL+SHIFT+M to enter Responsive Design Mode. Then open the web site.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 11, 2026, 1:47pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/15 "2026-09-11T13:47:48Z")

</div>

Strange I just right click the file in FileManager and open with  
Chromium or Firefox and it works with both will have to clear the cache  
and see  
phil

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [September 11, 2026, 2:24pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/16 "2026-09-11T14:24:58Z")

</div>

Okay. I just opened Firefox and clicked on the link to the site… and the map is displaying!!!

The last time I tested it, I had closed FF and needed to do the Ctrl+Shift+M to get it to work. We’ll test it again tomorrow.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 11, 2026, 2:25pm UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/17 "2026-09-11T14:25:24Z")

</div>

Please waste no more time on this just received via OpenstreetMap Forum

"Chrome UA should have been blocked in this instance, it will now be  
blocked.  
The error response image/message incorrect and now correctly sends: `403

- Access denied`(not`403r`). The curl tests do not pass the valid  
Chrome / Firefox checks.

For `file://` and similar where a `Referer` is not sent, we expect a  
`X-Requested-With` request header which identifies the app or service  
requesting the tiles. A browser CORS preflight is an unfortunate side  
effect, but is now correctly and cheaply handled at the CDN edge."

No idea what the second para means yet  
How can this be brought to the attention of the GRAMPS maintainer of  
Narrative Web Report and also anybody else using mapping functions.  
phil

---

<div class="post-metadata">

**Author:** ![pgerlier](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pgerlier](https://gramps.discourse.group/u/pgerlier)\
**Post date:** [September 12, 2026, 9:29am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/18 "2026-09-12T09:29:19Z")

</div>

> [@DaveSch](#):
>
> To make it work, you have to do the CTRL+SHIFT+M, and then launch your website.

Could you please give more details about the stance? I tried Ctrl+Shift+M, opened file _index.html_ in another tab then navigated to a place page but the map didn’t show up.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [September 12, 2026, 9:49am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/19 "2026-09-12T09:49:03Z")

</div>

> [@comeng](#):
>
> "Chrome UA should have been blocked in this instance, it will now be  
> blocked.

This process no longer works.

The new error.

 ![403 error](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/a/a68370898d22befe59c2ed008f6ff518677caea4.png)

The block is by Open Street Maps and now affects all other browsers.

---

<div class="post-metadata">

**Author:** ![comeng](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@comeng](https://gramps.discourse.group/u/comeng)\
**Post date:** [September 12, 2026, 10:54am UTC](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958/20 "2026-09-12T10:54:48Z")

</div>

Suspect I might be the guilty party here I asked the question on  
Openstreet Forum why it worked in Chromium but not Firefox eventually  
one of the members came on to explain it should not work on any browser  
Chromium included and I had exposed a weakness in their system which he  
proceeded to fix so now it will not work on any browser when you use a  
local file.  
This is a result of bot attacks in the last year or so.

There is a way of conforming but first impressions would be this is a  
substantial piece of coding to be altered in a range of GRAMPS sub  
programs ie everywhere that calls OSM from the Narrative Web Report.  
Apologies mea culpa  
phil

[Next page](https://gramps.discourse.group/t/narrative-web-openstreeetmap-referer/9958.md?page=2)
