Fork me on GitHub
#aleph
<
2024-02-22
>
Nim Sadeh20:02:02

what's the right way to do CORS in Aleph? I can't find an example online. All I'm trying to do is to get my localhost webapp to talk to my locahost web server.

valerauko01:02:00

What's the problem you're running into? I've never had issues connecting to localhost

valerauko01:02:23

If it's really CORS you need then you'll probably want a ring middleware for that, there should be some out there

Nim Sadeh02:02:33

Yea I ended up using a Ring middleware to resolve the CORS issue

Matthew Davidson (kingmob)10:02:27

Aleph has equivalents of most of the default Ring middleware, and is compatible with the rest (tho async Ring middleware requires wrapping in a fn) If you want to add this to the examples/ directory, PRs are welcome!