Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Build with IDX Broker › Forums › General Discussion › Access-Control-Allow-Origin
Tagged: Icon fonts are not loading
In setting up a new account for a customer I wanted to implement some icon fonts and some javascript. I found that when I load the IDX pages… The icons disappear. In loading the web developer inspector I see these errors…
XMLHttpRequest cannot load http://72.29.90.157/~brogdon/wp-content/themes/Lynn/fonts/typicons.min.css?ver=4.5.3. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://brogdongroup.idxbroker.com’ is therefore not allowed access.
So the files that I thought where loading are being, I guess blocked by the browser. Has any one ran into this an know how to implement a work around.
Here are links to the test site. http://72.29.90.157/~brogdon/
and the IDX Page
http://brogdongroup.idxbroker.com/idx/results/listings?idxID=a000&pt=1
I found a solution for this. I added this code to the .htaccess file and it worked for me.
<FilesMatch ".(ttf|otf|woff)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>