Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

2 participants

@Flamefork

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?

@edtsech

You have to do it through JIRA http://dev.clojure.org/jira/browse/CLJS and you should have signed Clojure CA http://clojure.org/contributing

@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
View
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")))
send-static)
Something went wrong with that request. Please try again.