diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
 
+## 0.52.3
+### Fixed
+- Errors should also contain CORS headers.
+
 ## 0.52.2
 ### Fixed
 - Blockchain.info raw address limit should use `limit` parametre and not `n`.
diff --git a/haskoin-store.cabal b/haskoin-store.cabal
--- a/haskoin-store.cabal
+++ b/haskoin-store.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: a5257439100cbe46b2ce30ebb4262ac135f8c98cdf4e4536ffbc55b676109f1a
+-- hash: 1b40d28d83e2cddb03963757ee2e052cbbfa539b82d7449d5132bc05c2d35485
 
 name:           haskoin-store
-version:        0.52.2
+version:        0.52.3
 synopsis:       Storage and index for Bitcoin and Bitcoin Cash
 description:    Please see the README on GitHub at <https://github.com/haskoin/haskoin-store#readme>
 category:       Bitcoin, Finance, Network
diff --git a/src/Haskoin/Store/Web.hs b/src/Haskoin/Store/Web.hs
--- a/src/Haskoin/Store/Web.hs
+++ b/src/Haskoin/Store/Web.hs
@@ -382,7 +382,7 @@
             S.middleware reqSizeLimit
             S.defaultHandler defHandler
             handlePaths
-            S.notFound $ S.raise ThingNotFound
+            S.notFound $ raise_ ThingNotFound
   where
     opts = def {S.settings = settings defaultSettings}
     settings = setPort port . setHost (fromString host)
@@ -452,6 +452,7 @@
 
 defHandler :: Monad m => Except -> WebT m ()
 defHandler e = do
+    setHeaders
     S.status $ errStatus e
     S.json e
 
