This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-22
Channels
- # adventofcode (35)
- # beginners (137)
- # braveandtrue (1)
- # calva (33)
- # cider (40)
- # cljsrn (4)
- # clojure (10)
- # clojure-spec (26)
- # clojure-uk (29)
- # clojurescript (18)
- # core-async (6)
- # cursive (1)
- # emacs (2)
- # figwheel-main (17)
- # fulcro (28)
- # jobs-discuss (4)
- # leiningen (1)
- # lumo (19)
- # off-topic (2)
- # om-next (1)
- # reitit (2)
- # rum (8)
- # spacemacs (19)
- # tools-deps (9)
- # yada (3)
Ok, after an hour of bashing my head against this I see that it has something to do with server/wrap-protect-origins.
Now the question is what to I set my legal-origin to in config/prod.edn? Using the server's domain name does not work. Perhaps using the machine name?
@pauld origins are just the hostname that the client knows the server as…so server domain name should work
I wonder if it has something to do with the fact that my I don't see "origin" in the header of the request.
Reading this seems to indicate that same-origin GET requests will not have the origin header set.
https://stackoverflow.com/questions/15512331/chrome-adding-origin-header-to-same-origin-request
I think this may be a bug in he fulcro.server/legal-origin? function. It should probably check the host header if the origin header does not exist. I'm not sure if this is secure though - I'm not a web dev professional.
Yeah, also setting :allow-when-origin-missing? to true does not work like I think in should as well.
well, just stip out that middleware…I’d appreciate an issue report on the fulcro lein template, with details of what you’re seeing
Hi. I'm trying to get started with the fulcro tutorial. However, when I run the script I get the error message down below. And I don't really know how to fix my setup. I've tried on both Git Bash and the standard Windows command prompt. The "lein" command works on both, but for some reason it doesn't work inside the script. Any advice? ./run-tutorial.sh: line 5: lein: command not found
I would edit the run-tutorial.sh file to set the location of your lein installation. So instead of lein you would have /home/juri/bin/lein
That might be an old tutorial, you might be better off using the lein-template and following along with the first chapter of the fulcro manual.
that is the fulcro developer guide http://book.fulcrologic.com
@pauld Oh ok, thanks! I will try the developer guide instead. I found the tutorial via the fulcro website https://github.com/fulcrologic/fulcro-tutorial.
Yeah, I'm new to fulcro too - they are moving fast. For instance the template uses workspaces and shadow-cljs instead of devcards and figwheel.
the workspace is really annoying to some degree... How can I see a pure UI without query in workspace ?
hello, if you don't want to use a query you can render the component as a react component, or set ::f.portal/wrap-root? false
so your component will be the root and avoid the problems of requiring query.