This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-11
Channels
- # adventofcode (52)
- # announcements (3)
- # aws (2)
- # babashka (36)
- # babashka-sci-dev (4)
- # beginners (69)
- # biff (45)
- # calva (9)
- # cider (3)
- # clara (8)
- # clj-kondo (24)
- # clojure (20)
- # clojure-dev (12)
- # clojure-europe (12)
- # clojurescript (2)
- # conjure (1)
- # emacs (17)
- # lsp (69)
- # malli (12)
- # off-topic (32)
- # polylith (2)
- # re-frame (4)
- # releases (2)
- # scittle (6)
- # shadow-cljs (21)
- # tools-deps (10)
- # vim (11)
- # xtdb (11)
Hello all, I'm having problems with CORS Policy using :http-xhrio
and I know that using :with-credentials false
works. How can I pass this configuration to the request? I tried using this:
{:http-xhrio {:with-credentials false ...}}
but it didn't work.:with-credentials
will only work when the server is explicitly set up to accept cross-origin requests. Also, I'm pretty sure that in order to enable this behavior on the client side, that attribute must be true
, not false
.
Is it valid to write a promise chain like this with dispatches inbetween?
(defn load-fn []
(->> (fn-that-creates-promise+)
(.then (fn [data]
;; Show a loading screen to the user
(dispatch [:start-loading])
;; Start processing side-effect
(start-long-process+ data+)))
;; data processing finished save result to db
(.then (fn [data]
(dispatch [:save-result data])))))