When you visit your site via HTTPS you can see an error because there are mixed contents. Since Google CSE module use http in form action.

Comments

asrob created an issue. See original summary.

asrob’s picture

StatusFileSize
new1.39 KB

Attached a small patch to change from http to https.

afinnarn’s picture

Hey @asrob, thanks for the patch!

Can you try to make the link protocol relative? I've seen mixed advice about that being best practice or being an anti-pattern, but the opposite would be true if you change to HTTPS and visit your site in HTTP mode. For this resource, I don't think security is much of a concern if it is fetched over HTTP sometimes.

afinnarn’s picture

Status: Needs review » Needs work
rromore’s picture

StatusFileSize
new1.88 KB

Attaching a patch which determines the correct protocol to use.

rromore’s picture

Status: Needs work » Needs review
twfahey’s picture

Awesome work, @rromore. We will be incorporating your work here in a related issue - https://www.drupal.org/project/google_cse/issues/2948111, will be sure to get you credit for the fix.

  • twfahey committed 1acdacc on 8.x-3.x
    Issue #2948111 by mark_fullmer, twfahey, xeM8VfDh, afinnarn, jwest1@...
twfahey’s picture

Status: Needs review » Fixed
twfahey’s picture

Status: Fixed » Closed (fixed)