Open kylehuynh205 opened 3 years ago
Irfan enabled https for Solr endpoint.
Issue: Connection Timeout error when run the form with VPN off because the Rest requests are made from javascript side which is front-end, while Solr Endpoint is behind VPN proection.
Solution: fixed by creating Proxy controller (https://github.com/digitalutsc/drupal_ajax_solr_search/blob/main/src/Controller/ProxySolrController.php) which pull data from Solr behind VPN and connect it to the Search form.
Demo: https://find.digital.utsc.utoronto.ca/multisite/search (can now run with VPN off)
The multisite Search form doesn't work if the protocol of Drupal side and Solr are not the same (ie. Drupal is https != Solr is http OR the opposite)
For Example: http://find.digital.utsc.utoronto.ca/multisite/search works while https://find.digital.utsc.utoronto.ca/multisite/search doesn't work.
A proper solution so far is enabling https for Solr.