aboutsummaryrefslogtreecommitdiff
path: root/src/guff.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff.cr')
-rw-r--r--src/guff.cr1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guff.cr b/src/guff.cr
index 7e826e8..d641032 100644
--- a/src/guff.cr
+++ b/src/guff.cr
@@ -515,6 +515,7 @@ module Guff
context.response.status_code = 304
else
# not cached, set code and send headers
+ context.response.headers["x-frame-options"] = "SAMEORIGIN"
context.response.status_code = 200
context.response.content_type = MimeType.from_path(abs_path)
context.response.content_length = File.size(abs_path)