Access-Control-Allow-Origin

  • Unknown's avatar

    We have our blog hosted on wordpress.com. Also several web galleries are part of the content. However, some of the web galleries or some of the images should be available to another website (some booking system). However, due to the same origin policy, jquery is prevented from loading images or galleries from wordpress.com. Is there a way to set the Access-Control-Allow-Origin header in order to allow access for a specific site?

    The blog I need help with is: (visible only to logged in users)

  • Hi,

    There is not a way to set that HTTP header per site. You can still insert the pictures using a traditional HTML tag (e.g. <img src=http://fotoschoolch.files.wordpress.com/2013/09/0002__48a9128.jpg">

    Without knowing your code, perhaps could use the .prepend or .append commands in jQuery to directly add the img src tag instead of trying to pull the image using drawImage()?

    Cheers

  • The topic ‘Access-Control-Allow-Origin’ is closed to new replies.