Blocked loading mixed active content error in console on refreshing page

Hi,
I have a page with the url :
https://secure.yatra.com/flights-india-yt/dom2/confirm/getResponseFromPaymentPortal
It loaded perfectly the first time.
I refreshed it using ctrl+shift+R, the page reloaded perfectly.
But when i clicked on the url in the browser and pressed enter it breaks.
I see the following list of errors in console :

Blocked loading mixed active content "http://cdn.optimizely.com/js/284419414.js"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/css/common/layout.min.css?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/css/common/jquery.min.css?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/css/common/enquiry-Css.min.css?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery-1.7.2.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.core.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.widget.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.position.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.mouse.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.autocomplete.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/spin.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/autolookup_main.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/webanalytics/dom2/yttk_confirm.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/webanalytics/analyticsFooter.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/plugins.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/flight-calender.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/flight-combobox.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/dateFormat.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/webanalytics/trackInsightOne.min.js?version=1234"
Blocked loading mixed active content "http://css.yatra.com/content/fresco/default/css/headerWhitelabel.min.css?version=2014000623"
Blocked loading mixed active content "http://js.yatra.com/content/fresco/default/js/googleAnalytics/ytGoogleAnalytics.min.js?version=2014000623"
Blocked loading mixed active content "http://js.yatra.com/content/fresco/js/common/combined_login.min.js?version=2014000623"
Blocked loading mixed active content "http://css.yatra.com/content/fresco/default/css/footerWhitelabel.min.css?version=2014000623"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/discountingService.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/main.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/validation-framework.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/userLogin.min.js?version=1234"
Blocked loading mixed active content "http://cdn.optimizely.com/js/284419414.js"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/css/common/layout.min.css?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/css/common/jquery.min.css?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/css/common/enquiry-Css.min.css?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery-1.7.2.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.core.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.widget.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.position.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.mouse.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/jquery.ui.autocomplete.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/spin.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/autolookup_main.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/webanalytics/dom2/yttk_confirm.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/webanalytics/analyticsFooter.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/plugins.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/flight-calender.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/flight-combobox.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/third-party/dateFormat.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/webanalytics/trackInsightOne.min.js?version=1234"
Loading mixed (insecure) display content on a secure page "http://dev.yatra.com/flights-india-yt/content/images/calloader.gif"
Blocked loading mixed active content "http://css.yatra.com/content/fresco/default/css/headerWhitelabel.min.css?version=2014000623"
Blocked loading mixed active content "http://js.yatra.com/content/fresco/default/js/googleAnalytics/ytGoogleAnalytics.min.js?version=2014000623"
Blocked loading mixed active content "http://js.yatra.com/content/fresco/js/common/combined_login.min.js?version=2014000623"
ReferenceError: $ is not defined
getResp...tPortal (line 238)
Blocked loading mixed active content "http://css.yatra.com/content/fresco/default/css/footerWhitelabel.min.css?version=2014000623"
ReferenceError: jQuery is not defined
getResp...tPortal (line 261)
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/discountingService.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/main.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/validation-framework.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/userLogin.min.js?version=1234"
ReferenceError: $ is not defined
getResp...tPortal (line 280)
ReferenceError: $ is not defined

Open in new window


What can be the reason for this ? How do i resolve this.

Thanks
Rohit BajajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
Change the forced code http: to relative urls


c
http://dev.yatra.com/flights-india-yt/content/js/common/discountingService.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/main.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/validation-framework.min.js?version=1234"
Blocked loading mixed active content "http://dev.yatra.com/flights-india-yt/content/js/common/userLogin.min.js?version=1234"

Open in new window

0
GaryCommented:
External files should have a secure site available so you can change these type of links
http://cdn.optimizely.com/js/284419414.js

to (remove http:)
//cdn.optimizely.com/js/284419414.js

David is right about the relative urls but you have a number of urls using different subdomains so unless you have a secure cert for each sub domain or wild card cert then you will need to change all those urls to the main domain then you can use the relative url.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rohit BajajAuthor Commented:
But why its loading the first time but on refreshing its breaking
0
Rohit BajajAuthor Commented:
On hitting refresh the code is hitting the following function :
  @RequestMapping(value = "getResponseFromPaymentPortal", method = RequestMethod.GET)
         public void getResponseForGetMethod(HttpServletRequest request, HttpServletResponse response, Model model) {
               logger.debug("User Pressed Enter in Confirmation URL");
               throw new GetNotSupportedException(properties.getProperty(AppProperties.GET_NOT_SUPPORTED_ERROR_ON_CNF_PAGE));

         }

This is inside a controller class and from here i guess some view is rendered using tiles.
But i am unable to understand the processing after throwing of exception.

How its going to tiles and accessing it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.