×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: https Access-Control-Allow-Origin,caching disabled

https Access-Control-Allow-Origin,caching disabled 11 years 3 weeks ago #23279

  • wimder
  • wimder's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Loading my site through https causes an XMLHttpRequest cannot load ... not allowed by Access-Control-Allow-Origin error.
The reason seems to be the hardcoded the JSON object, in my case http:// in index.php?option=com_comment&task=comments.getcomments&format=json&contentid=62&component=com_content

I've turned of Joomla caching entirely.

Switching to http works fine, but that's not an option.

Is there a solution for this?

https Access-Control-Allow-Origin,caching disabled 11 years 3 weeks ago #23283

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Wait a second. As you can see your site is also running through https:
compojoom.com/about/blog/entry/cmc-1-4-s...-just-got-way-easier
And the form loads just fine and there are no errors. We call the https url to get the comments. How are you turning https on? Is it through the global config or what do you do exactly?

Regards,
Daniel
The following user(s) said Thank You: wimder

https Access-Control-Allow-Origin,caching disabled 11 years 3 weeks ago #23285

  • wimder
  • wimder's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Good point Daniel, thanks! https is forced by our UAG. We're in the process of migrating our websites to another hosting platform. I'll try to move the site to see if that might have been be the problem. I'll keep you posted.

Thanks,

Wim

https Access-Control-Allow-Origin,caching disabled 11 years 3 weeks ago #23286

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
UAG? What is that? Can you set it in the joomla global config?

https Access-Control-Allow-Origin,caching disabled 11 years 3 weeks ago #23288

  • wimder
  • wimder's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
That's Microsoft Forefront Unified Access Gateway. It has loads of options and makes things more complicated and it's easier to mess stuff up. We're moving to a server which is not behind this gateway anyway. My guess is that this will resolve the cross domain issue as well. I'll let you know next week.
  • Page:
  • 1
Time to create page: 0.108 seconds