re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
Ruben.Hamers 2021-02-27T07:00:15.029100Z

Does re-frame hhtp-fx have a way to set the cors headers?

p-himik 2021-02-27T08:21:54.029200Z

If you mean :http-xhrio, then you can use anything that cljs-ajax uses. In this case, just set an appropriate :headers map.

Ruben.Hamers 2021-02-27T08:31:56.029600Z

yea, great! thx!

1👍
superstructor 2021-02-28T06:44:04.030200Z

Alternatively if you don't need legacy browser support - https://github.com/superstructor/re-frame-fetch-fx

p-himik 2021-02-27T08:21:54.029200Z

If you mean :http-xhrio, then you can use anything that cljs-ajax uses. In this case, just set an appropriate :headers map.

pez 2021-02-27T08:28:12.029400Z

Thanks for all these inputs and elaborations, all of you. This is great!

Ruben.Hamers 2021-02-27T08:31:56.029600Z

yea, great! thx!

1👍
pez 2021-02-27T08:46:25.029900Z

@lilactown in my use case I have components that should change their style, content, and behaviour at certain times of the day. So it is not really about an update every second. I want the updates to happen on even minutes (not every minute), because it felt weird when the clock on the phone switched minute and the changes happened up to a minute later.

1👍