Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Allow serving of static css, jpg, png from repl server #27

wants to merge 1 commit into from

2 participants


There is need to serve the whole app from repl server, thus adding few more allowed filetypes solves the immediate problem.
The question is: is there a need to allow only few "safe" file types?


You have to do it through JIRA and you should have signed Clojure CA

@Flamefork Flamefork closed this
@Flamefork Flamefork deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/clj/cljs/repl/browser.clj
3  src/clj/cljs/repl/browser.clj
@@ -86,6 +86,9 @@
(server/dispatch-on :get
(fn [{:keys [path]} _ _] (or (= path "/")
(.endsWith path ".js")
+ (.endsWith path ".css")
+ (.endsWith path ".jpg")
+ (.endsWith path ".png")
(.endsWith path ".html")))
Something went wrong with that request. Please try again.