Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

fix(pwa): harden manifest render to explicitly use json format (#2508)

sentry[bot]24ba7ab6a01f
diff --git a/app/controllers/pwa_controller.rb b/app/controllers/pwa_controller.rb
index dd3f1a65fd..2ea181b33f 100644
--- a/app/controllers/pwa_controller.rb
+++ b/app/controllers/pwa_controller.rb
@@ -4,7 +4,7 @@ class PwaController < ApplicationController
def manifest
# Force JSON format to avoid MissingTemplate errors when browsers request /manifest
# with HTML Accept headers (Safari Mobile does this for PWA manifest discovery)
- render "pwa/manifest", content_type: "application/manifest+json"
+ render "pwa/manifest", formats: [ :json ], content_type: "application/manifest+json"
end
def service_worker