This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-21
Channels
- # announcements (13)
- # babashka (63)
- # babashka-sci-dev (64)
- # beginners (37)
- # biff (1)
- # calva (10)
- # cider (7)
- # clj-kondo (15)
- # cljsrn (6)
- # clojure (26)
- # clojure-dev (10)
- # clojure-europe (34)
- # clojure-france (9)
- # clojure-nl (2)
- # clojure-norway (36)
- # clojure-uk (5)
- # clojurescript (142)
- # community-development (1)
- # conjure (3)
- # datalevin (5)
- # datalog (2)
- # datomic (5)
- # events (11)
- # fulcro (40)
- # gratitude (9)
- # guix (32)
- # honeysql (10)
- # jobs (2)
- # lsp (32)
- # malli (15)
- # meander (5)
- # membrane (43)
- # missionary (3)
- # nextjournal (9)
- # off-topic (38)
- # pathom (3)
- # polylith (30)
- # portal (78)
- # programming-beginners (4)
- # quil (6)
- # re-frame (20)
- # reagent (21)
- # remote-jobs (2)
- # shadow-cljs (7)
- # tools-deps (6)
- # xtdb (23)
hiccup is in clj, but re-frame can process hiccup. is re-frame using some cljs port of hiccup?
re-frame doesn't process hiccup. Instead it works in with Reagent. Indeed, the name re-frame is short for "Reagent framework".
Just to be clear. You can use Reagent by itself without re-frame. Reagent is a layer over React. re-frame provides a framework for using Reagent (because IMO Reagent isn't enough)
This may help to further explain the relationship ...
ah, and reagent uses “hiccup-like” markup according to the readme. I see. Thanks!
I am getting below error has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'
when calling different service end points, How can we fix this error? I was referring few docs https://medium.com/coinmonks/how-to-fix-cors-web-server-error-6c2c55938f95
You fix CORS errors on the server, not on the client. Not related to re-frame at all.
This question makes you take a step back and learn before moving forward again 😞 I've been through the same thing
Are the requests that are getting CORS errors attempting to reach a backend service that you own?
try reading up on reverse proxying - for example, I have a re-frame app running on nginx and a graphql endpoint running apart from that. I got CORS errors when I tried to hit the graphql endpoint directly from my re-frame app because I was requesting something from somewhere other than the same place that the app was served from. When I made a new /graphql endpoint that proxied my request to the graphql service running apart in its own silo, the CORS rules were satisfied because my page was only requesting resources that came from its origin.