Fork me on GitHub
#ring
<
2017-02-07
>
thomas14:02:42

I have recently update to Ring 1.5.1 and now some of my static stuff is broken... and all I have is the site-default: :static {:resources "public"}

thomas14:02:32

how can I add the :allow-symlinks? flag to that? Any ideas?

mgrbyte16:02:32

Noob question. I'm having difficulty getting anti-forgery to work - think I've narrowed it down to the token not persisting in the session. I've quickly created a very minimal example that reproduces the issue, could anyone help? https://github.com/mgrbyte/ring-test/tree/master

thomas21:02:01

@mgrbyte I have seen that... but I don't see a call to resource-response or route/resources anywhere in the code. so not sure how I can use that option. Thank you for your help though.

mgrbyte21:02:02

@thomas I believe the option is an argument to ring.util.file-response, which typically is invoked by ring.middleware.file/wrap-file I believe - so you should be able to pass the option to that middleware.