diff options
Diffstat (limited to 'src/origin_check.clj')
| -rw-r--r-- | src/origin_check.clj | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/origin_check.clj b/src/origin_check.clj new file mode 100644 index 0000000..a24e43b --- /dev/null +++ b/src/origin_check.clj @@ -0,0 +1,8 @@ +(ns origin-check) + +(defn with-origin-check + "Middleware to validate that state-changing URL access + originated from a page in the local domain." + [handler] + (fn [request] + (handler request)))
\ No newline at end of file |
