From 0e5e981e79aba13835fe3816ad13c97f0b7bb870 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Thu, 11 Jun 2020 19:14:12 +0200 Subject: [PATCH] Fix CORS post --- project.clj | 2 +- src/api2smtp/core.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project.clj b/project.clj index 5e5a403..a6806f2 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject api2smtp "1.0.2" +(defproject api2smtp "1.0.3" :description "Send emails through an Endpoint API" :url "https://github.com/tanrax/api2smtp" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" diff --git a/src/api2smtp/core.clj b/src/api2smtp/core.clj index ea66664..5ef7dc6 100644 --- a/src/api2smtp/core.clj +++ b/src/api2smtp/core.clj @@ -13,7 +13,7 @@ (wrap-defaults (assoc-in site-defaults [:security :anti-forgery] false)) (wrap-cors :access-control-allow-origin [(re-pattern (if (config :debug) ".*" (config :domain)))] - :access-control-allow-methods [:get]) + :access-control-allow-methods [:get :post]) (#(if (config :debug) (wrap-reload %) %)))) (defn -main [& args]