This page is trying to load scripts from unauthenticated sources in SharePoint 2013

I this article, I will show how to overcome the below SharePoint error

Starting a page approval workflow in SharePoint cause a blank page with “This page is trying to load scripts from unauthenticated sources”


Scenario

In SharePoint 2013, when I tried to submit a page for approval

submit a page for approval in SharePoint - blank page

I got a blank page without showing the approval workflow task form as shown below.

Start workflow is blank

Also, I got the below security warning

This page is trying to load scripts from unauthenticated sources

This page is trying to load scripts from unauthenticated sources.


Cause

This problem usually occurs if the current page has been hosted within a secure HTTPS environment. Meanwhile, it embeds unsecured HTTP contents/scripts.

In my scenario, the SSL certificate has been configured on Load-Balancer, not on the WFE SharePoint server.

Therefore, the traffic encrypted up to the Load-Balancer, then it cleared between the Load-Balancer and the application server, this operation is called as SSL Offloading.

SSL off loading in SharePoint cause This page is trying to load scripts from unauthenticated sources.

Although the SSL Offloading provides a good performance, it causes a lot of issue with SharePoint environment if it’s not configured properly.

BTW, if the SSL Offloading is not configured properly, and you have tried to browse a SharePoint web service like ProjectServer.SVC you will get the below error

This request has been blocked; the content must be served over HTTPS In SharePoint.


SSL offloading with SharePoint.

If you have configured the SSL on the load balancer and you already configured the SSL Offloading you still get This page is trying to load scripts from unauthenticated sources. that means the current SSL Offloading is not configured properly!

As a quick solution, you can use Google Chrome to force loading unsafe scripts link as the following:

  • Clicking on Load unsafe scripts link.

load scripts from unauthenticated sources

  • This action will force showing the approval workflow task form

Get blank page when Start Approval Workflow

  • Click on Start to initiate the workflow but unfortunately, you will get the below critical error:

An error occurred submitting this form to the web server, click start over

Critical error, an error occurred submitting this form to the web server, click start over

  • I do not despair, and I clicked on Start Over again to force starting the task.

This request has been blocked; the content must be served over HTTPS.

  • I checked the ribbon to make sure it has been submitted.

Start approve page workflow

  • Also, I went back to Site Content > Task list to ensure that the task has been assigned.

This page is trying to load scripts from unauthenticated sources

Note: The Google Chrome forces the loading of the unsafe script by clicking on “Load unsafe scripts“.

In case, you are using Internet Explorer you should enable the Display Mix Content settings. check the detail steps at Only Secure Content is displayed – Enable the Mix Content In Internet Explorer


As a permeant solution, you have two options

  • Configuring the SSL offloading on the Load balancer to validate the certificate on the load balancer, not the WFE SharePoint servers.
  • Installing the SSL certificate on the WFE SharePoint Servers.

Configure SSL offloading in SharePoint Farm

  • Open Alternative Access Mapping in Central Administration.

Alternative Access Mapping

  • Consider you have a public URL “http:"//epm“.
  • Edit the Public URL and Change it from HTTP to HTTPS “https:"//epm“.
  • Add new Internal URL and add the HTTP URL “http"://epm“.
  • The final result should look like

Configuring SSL offloading with SharePoint Farm.


Install the SSL certificate on the SharePoint Servers

It’s also preferred to install the same load balancer SSL certificate on the WFE SharePoint Servers. This is will ensure that there is no additional issue with the other application services like Search …etc.

Please, Feel free to pipe in, in the comments if you have something to share.


Applies To
  • SharePoint 2016.
  • SharePoint 2013.
  • SharePoint 2010.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s