google app engine - GWT Font-awesome not properly displaying on Firefox -
I can not get fonts-awesome to display properly in Firefox, even in the localhost. I am receiving a cross domain error, which is actually reported.
This problem is resolved directly in the following .htaccess or Apache config:
& lt; File match ". (Ttf | otf | eot | woff) $" & gt; & Lt; IfModule mod_headers.c & gt; Header has access-control-permission-origin "*" & lt; / IfModule & gt; & Lt; / FilesMatch & gt; But I'm hosting my app in Google App Engine, so how can I set entry-control-permission-origin in GAE?
If you are using Java, then your appengine-web.xml code> to include the file in something & lt; Static-files & gt; & Lt; Path = "/ my_static-files" & gt; & Lt; Http-header name = "access-control-permission-origin" value = "*" /> & Lt; / Include & gt; & Lt; / Static-files & gt; Or to avoid potential security issues, note by @ mabn using value = * . & lt; Static-files & gt; & Lt; Path = "/ my_static-files" & gt; & Lt; Http-header name = "access-control-permission-origin" value = "http://example.org" /> & Lt; / Include & gt; & Lt; / Static-files & gt; If you are using Python then include your app.yaml to include something like - url: / images Edit File Static_dir: Static / Images http_headers: Access-Control-Permission-Origin: * For more details see and make it more specific for your configuration See for
Comments
Post a Comment