Skip to content

Commit

Permalink
Merge pull request #274 from tdiary/x-frame-option_on_admin
Browse files Browse the repository at this point in the history
set X-Frame-Options to SAMEORIGIN in admin pages #273
  • Loading branch information
tdtds committed Mar 26, 2013
2 parents 916849b + 2c457f2 commit 31dde8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdiary/dispatcher/update_main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def run
'Content-Type' => 'text/html',
'charset' => conf.encoding,
'Content-Length' => body.bytesize.to_s,
'Vary' => 'User-Agent'
'Vary' => 'User-Agent',
'X-Frame-Options' => 'SAMEORIGIN'
}
end
body = ( request.head? ? '' : body )
Expand Down

0 comments on commit 31dde8b

Please sign in to comment.