views:

79

answers:

1

I am developing a small rails app to serve fonts to other sites

say a request http://url/fonts/fontname will return woff,eot or ttf font based on the browser type.

This app is working fine in my localhost but not in other ip... I know the problem is something to do with Cross-Origin Resource Sharing restriction but don't know how to solve this....

I am using Mongrel...

A: 

You said you have access to the other sites' files.
Well then you just need to add Header set Access-Control-Allow-Origin * to your .htaccess file on the targeted websites.

source

Knu
yeah it is working thanx a lot...
Dhana
another thing I tried for security seasons is to add Access-Control-Allow-Origin * in response header
Dhana