my rails app threw an exception because of a ActionView::MissingTemplate
-exception. This was because a request had a http header ACCEPT
with the value : */*
. The app couldn't find a template for this format (which is what I expect to happen). The user agent was set to Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
.
I'm curious (and a little concerned) about what this means. Is this a problem with rails, a problem with my app, or an attack vector? I've seen answers to similar questions (e.g. Ruby on Rails and strange HTTP_ACCEPT header from PSP) which proposed to rescue these exception and answer with the format set to HTML. However, before using this approach I'd like to now if : */*
is an acceptable value for ACCEPT
, and which browser would set it like that.
I'm on Rails 3.2.13.
: */*
accept header. In my errbit instance it shows the following browsers: Chrome 27.0.1453.116 (Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36) Internet Explorer 7.0 (Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)) Explore (Explore 6.0). Did you find any solution yet? – Marc Lainez Aug 6 '13 at 9:08