Results 1 to 4 of 4

Thread: javascript causing ssl error - linkedin

  1. #1
    Join Date
    Aug 2011
    Posts
    7

    Default javascript causing ssl error - linkedin

    Hi,

    When adding the linkedin share button from http://developer.linkedin.com/plugins/share-button on template.aspx, the button looks and works fine, except that when viewing the page via Chrome it shows SSL error.

    <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
    <script type="IN/Share" data-url="the linkedin profile page"></script>

    Suggestions?

  2. #2
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    I would try changing the link in your JS to be https instead of http. It looks like they have an SSL cert installed there so the link still works, and it should prevent the 'mixed content' warnings from browsers.

  3. #3
    Join Date
    Aug 2011
    Posts
    7

    Smile

    Thanks! it worked very well.

    P.S. At first when testing I guess because of the browser session, it was not possible to see the changes, but then when testing again after clearing the cookie and starting a new browser etc. the ssl error disappeared.

  4. #4
    Join Date
    Apr 2006
    Location
    Phoenix AZ
    Posts
    81

    Default

    I would change all your external references to scheme relative - so that it doesn't matter if you are using SSL or not - you just need to make sure the external ref's all support https - so for example, instead of:

    Code:
    <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
    USE THIS:
    Code:
    <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
    i.e. drop the "http:"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •