Skip to content

Commit e115f36

Browse files
Fix warning from favicon img load
1 parent 2afa399 commit e115f36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/better_errors/middleware.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def show_error_page(env, exception=nil)
120120
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src
121121
"script-src 'self' 'nonce-#{csp_nonce}' 'unsafe-inline'",
122122
"style-src 'self' 'nonce-#{csp_nonce}' 'unsafe-inline'",
123+
"img-src data:",
123124
"connect-src 'self'",
124125
"navigate-to 'self' #{BetterErrors.editor.scheme}",
125126
].join('; '),

lib/better_errors/templates/main.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title><%= exception_type %> at <%= request_path %></title>
5+
<link rel="icon" href="data:;base64,=" />
56
</head>
67
<body class="better-errors-javascript-not-loaded">
78
<%# Stylesheets are placed in the <body> for Turbolinks compatibility. %>

0 commit comments

Comments
 (0)