<p dir="auto">We have <code class="notranslate">allow_thirdparty_images</code> policy on some pages that sets <code class="notranslate">img-src</code> policy to <code class="notranslate">*</code>. But <code class="notranslate">*</code> does not include data uris. That causes some of the ui elements to disappear.</p>
<p dir="auto">For example, on <code class="notranslate">/account/edit</code> there's no dropdown icon:<br>
<a href="https://github.com/user-attachments/assets/faa20e87-2740-46bb-a1c3-c66ca075fc6b">image.png (view on web)</a></p>
<p dir="auto">After this fix:<br>
<a href="https://github.com/user-attachments/assets/8a6cb78b-a10e-4847-a329-b473a297fbea">image.png (view on web)</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5378'>https://github.com/openstreetmap/openstreetmap-website/pull/5378</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5378/commits/88d80018b52a4b815b5e140c3cd1dd9326567bae" class="commit-link">88d8001</a> Include data: when using allow_thirdparty_images CSP</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5378/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5378/files#diff-766c34fd6533171eaf54300c153f89d6002c35c02cfc9c5b219251f85180ad07">app/controllers/application_controller.rb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5378.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5378.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5378.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5378.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5378">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOWLSMMH2RG45MJLI32D4VEXAVCNFSM6AAAAABTASJV76VHI2DSMVQWIX3LMV43ASLTON2WKOZSG4YTQMRWGQZDAMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLP5VEHLUPB2KBRYZIT2D4VEXA5CNFSM6AAAAABTASJV76WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKEBLLRI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5378</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5378",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5378",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>