Multilingual setup on subdomain breaks ajax requests over HTTPS

Created on 24 October 2018, about 6 years ago
Updated 9 June 2024, 7 months ago

I'm trying to setup a multilingual website with two languages. Website is going under Cloudflare and I have their HTTPS integration.

If i go to /admin/config/regional/language/detection/url and select "Path prefix" - everything works fine.

But if i select second option, which is "Domain" (english version is not default and goes to en.site.com subdomain) every ajax request is trying to go through HTTP instead of HTTPS. This causes mixed content errors, ajax requests are not being processed and website is not functioning, as expected. It can be anything: Views functionality, plupload widget, node type fields options selector, autocomplete fields - anything!

If I switch back to prefix (which is using site.com/en/ for example) - everything works fine.

To manage subdomains I use Domain Access β†’ module and it is set to use HTTPS in "Domain URL scheme" options. But I don't think that it has something to do with this module, because ajax breaks not only on subdomain, but on any page of the main domain as well.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
AjaxΒ  β†’

Last updated 1 day ago

Created by

πŸ‡·πŸ‡ΊRussia bigboy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia mstrelan

    Is this still an issue? There were some changes to asset URLs in 9.3 that changed from absolute to relative which solved a lot of issues around this. Otherwise I suspect this is actually a support request. When Drupal is behind a reverse proxy it needs proper configuration to coerce it in to using the https protocol. See the Reverse Proxy Configuration section of default.settings.php for more information.

  • Status changed to Closed: outdated 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Since there hasn't been a follow up going to close out. If still a bug please reopen adding steps to reproduce to the summary.

Production build 0.71.5 2024