SFDO-Tooling / Metecho

Web-based tool for collaborating on Salesforce projects
BSD 3-Clause "New" or "Revised" License
44 stars 34 forks source link

HELP : button SVG files are not loading on Heroku #1591

Closed RupertBarrow closed 2 years ago

RupertBarrow commented 2 years ago

Is there a Django setting or something to make button SVG icons not get rejected by a CORS constraint ?

Here is the error message on loading any Metecho page which displays a button/menu : Unsafe attempt to load URL data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' display='none'%3e%3csymbol viewBox='0 0 52 52' id='activity' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M37.618 11.67c-1.54.5-2.783.98-3.723 1.438-.747.364-1.687.901-2.814 1.61.086 1.882.084 3.463-.009 4.754-.094 1.304-.342 3.173-.746 5.63l-.001.003c2.815 2.028 4.848 3.56 6.11 4.604.163.135.633.584.856.783l4.344-1.82.028-.074c.627-1.347 1.145-3.186 1.54-5.507.322-1.899.376-3.99.159-6.276l-5.744-5.14...-14-14S14.3 8 22 8s14 6.3 14 14-6.3 14-14 14z'/%3e%3c/symbol%3e%3csymbol viewBox='0 0 52 52' id='zoomout' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19 25h12c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1H19M19 19h-6c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6'/%3e%3cpath d='M49.6 45.3L38.1 33.8C40.5 30.5 42 26.4 42 22c0-11-9-20-20-20S2 11 2 22s9 20 20 20c4.4 0 8.5-1.5 11.8-3.9l11.5 11.5c.6.6 1.5.6 2.1 0l2.1-2.1c.6-.6.6-1.6.1-2.2zM22 36c-7.7 0-14-6.3-14-14S14.3 8 22 8s14 6.3 14 14-6.3 14-14 14z'/%3e%3c/symbol%3e%3c/svg%3e#down from origin https://mymetecho.herokuapp.com. Domains, protocols and ports must match

davisagli commented 2 years ago

Are you seeing this in Safari? If so I believe we already have a fix in progress.

RupertBarrow commented 2 years ago

Yes

Le 17 déc. 2021 à 17:25, David Glick @.***> a écrit :

Are you seeing this in Safari? If so I believe we already have a fix in progress.

— Reply to this email directly, view it on GitHub https://github.com/SFDO-Tooling/Metecho/issues/1591#issuecomment-996852982, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTAP576F6UB6DAM6LSLDRDURNQBPANCNFSM5KBS5OMQ. You are receiving this because you authored the thread.