[Support request] Access-Control-Allow-Origin2016-07-16T08:17:32+00:00

Build with IDX Broker Forums General Discussion Access-Control-Allow-Origin

  • Author
    Posts
  • Ryan Litts
    Participant
    Post count: 5

    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

    0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
    You need to be a registered member to rate this post.
    Loading...
  • Ryan Litts
    Participant
    Post count: 5

    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>

    0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
    You need to be a registered member to rate this post.
    Loading...

You must be logged in to reply to this topic.