From d5260872c197fdd27fee0eef3a8380a258c40e75 Mon Sep 17 00:00:00 2001 From: Eric Allam Date: Fri, 2 Sep 2016 15:07:19 +0100 Subject: [PATCH] Update the README to be clear that this gem is only for production environments that do not precompile their assets --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9b26752..fb30eab 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,11 @@ two things: In addition, it will also respond to the pre-flight OPTIONS requests made by supporting browsers (Firefox). +Important +--------- + +This gem only works if you are **NOT** precompiling your assets in production, because it requires asset requests to go through the Rails app, and if you precompile your assets then you are most likely serving them through a web server like NGINX. If this is the case, don't use this gem but instead look into configuring the CORS headers for font requests. For example, here is a way to [do that in NGINX](http://enable-cors.org/server_nginx.html). + Install -------