Ajax and HTTPs Problem

UI Components for JSF
Post Reply
JamieD
Posts: 1
Joined: 11 Nov 2016, 11:09

17 Nov 2016, 06:49

Hi,

I am loading some html code via Ajax on an HTTPS page.
The Problem is that to the scripts url included in the html page is added the domain name twice which results in broken URLs.

in the response included script tag:
<script type="text/javascript" src="/assets/7a4a3a2c/gridview/jquery.yiigridview.js" > < /script >


the GET request from the browser:
https:\\domain/site.php/https:\\domain/assets/7a4a3a2c/gridview/jquery.yiigridview.js?_=1442334146191


should be:
https:\\domain/assets/7a4a3a2c/gridview/jquery.yiigridview.js


Is the URL overwritten by some js script or by the browser and why?
The domain name is the same, this is not cross domain.

With http everything is working fine.

* had to replace slash in the url backslash

thanks

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

18 Nov 2016, 10:38

how is this related to PF?
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 23 guests