<p dir="auto">Fixes problems like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2317668261" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/iD/issues/10259" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/iD/issues/10259/hovercard" href="https://github.com/openstreetmap/iD/issues/10259">openstreetmap/iD#10259</a>.</p>
<p dir="auto">This is a slight regression in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2209323693" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4627" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/4627/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/4627">#4627</a>, as the code previously <em>appended</em><sup><a href="#user-content-fn-1-31892bf63dacfa4a2b81f5d934663f47" id="user-content-fnref-1-31892bf63dacfa4a2b81f5d934663f47" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup> the additional CSP rules and now they are overwritten. I assume this was an oversight in the migration process, or was the omission of the existing <code class="notranslate">img-src</code> rules there on purpose? In that case, the <code class="notranslate">:data</code> type should be added as <code class="notranslate">policy.img_src("*", :blob, :data)</code>.</p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only" dir="auto">Footnotes</h2>
<ol dir="auto">
<li id="user-content-fn-1-31892bf63dacfa4a2b81f5d934663f47">
<p dir="auto">see <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4627/files#diff-c7e7144de4dcf44dbb148d4acc6aa4a9d8581c6a581966a0bbfb598e79730f14L139">https://github.com/openstreetmap/openstreetmap-website/pull/4627/files#diff-c7e7144de4dcf44dbb148d4acc6aa4a9d8581c6a581966a0bbfb598e79730f14L139</a> <a href="#user-content-fnref-1-31892bf63dacfa4a2b81f5d934663f47" data-footnote-backref="" aria-label="Back to reference 1" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>

<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/4840'>https://github.com/openstreetmap/openstreetmap-website/pull/4840</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4840/commits/4ef6876b32e6c56475c3f4c709c7ce1071c47227" class="commit-link">4ef6876</a>  allow data URIs for images in iD</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4840/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4840/files#diff-c7e7144de4dcf44dbb148d4acc6aa4a9d8581c6a581966a0bbfb598e79730f14">app/controllers/site_controller.rb</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4840.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4840.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4840.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4840.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/4840">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKV5FOB7NQHRZCWEZTZEHMXLAVCNFSM6AAAAABIJZHJ5CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTONZQGE3TQNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMTFEQZI56XNUUDO6LZEHMXLA5CNFSM6AAAAABIJZHJ5CWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIUJKSTA.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/4840</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/4840",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4840",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>