If assets are enqueued properly they are using the exact URL they are enqueued with. If the protocol in URL is hardcoded that causes mismatch issues you are seeing.
For proper protocol support enqueued URLs need to be either:
- created with protocol-aware API function from WP API (most if not all functions that produce URLs are)
- using protocol-relative format like
//example.com/stylesheet.css
If you the links are coming from third party code you’ll have to unregister and re-register resource accordingly or (worst case scenario if queue is not used) rewrite the code / have original developer do it.
Related Posts:
- https connection using CURL from command line
- Simple Java HTTPS server
- HTTPS connection Python
- Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url
- Local version of a WordPress site – SSL/HTTPS enforced?
- bloginfo() and get_template_directory_uri() with SSL?
- After updating site to use SSL all images in posts point to http://
- Adding https to wordpress website
- SSL setup: wp-login css doesn’t load over httpS
- In WP versions >= 4.0, is FORCE_SSL_LOGIN forcing HTTPS for the entire admin session?
- Occasional HTTPS Mixed Content Warning
- Divert http to https with WordPress on IIS
- I changed my site from HTTPS back to HTTP and now it is broken- Cannot access Admin panel on HTTP URL
- un-loading https
- WordPress site shows “File not found.” if opened through https
- Address a single page to SSL https secure protocol?
- wordpress http to https windows server
- Jetpack “Connect to WordPress” serving insecure content under HTTPS
- Allow non-SSL pages to use https or Force non-SSL pages to http?
- Website access with http and https
- Need ideas for HTTPS multiple domain solution
- How to control SSL in WordPress for automatically changing http to https?
- All content is HTTPS, but browsers warn of HTTP mixed content [closed]
- How do I handle SSL properly when WP is behind a reverse proxy?
- Hi do I change Media files that still show as http after installing ssl
- ERR_TOO_MANY_REDIRECTS on wordpress page [closed]
- URLs not being output with https
- Website Migration (with https) to a new domain(http)
- How to move my local wordpress to https?
- Why does WordPress uses HTTPS for JS, CSS on EC2
- Implications of not completing all tasks when switching to HTTPS
- SSL Certificate
- Front-end pages messed up due to HTTPS
- How to send user data from one website to another
- How come all my http URLs are turned to https?
- Forcing SSL (Bad Theme coding)
- How to switch static files back to using HTTP instead of HTTPS?
- My WordPress site SSL is in red crossed color and can’t load at first time?
- SSL/HTTPS Redirect Loop
- The plain HTTP request was sent to HTTPS port in wordpress [closed]
- iHow to redirect all http traffic to https now that a SSL certificate is added?
- How to force static assets with HTTP sources to load over HTTPS?
- Moving WordPress from http to https over existing site
- Properly setting up a “default” nginx server for https
- Changing my URL in General Settings cause the site to crash
- wordpress is auto using http: not https: as it needs to because the server is http behind a reverse proxy https, how do I stop it?
- SSL Error: unable to get local issuer certificate
- What is .crt and .key files and how to generate them?
- NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked
- “ssl module in Python is not available” when installing package with pip3
- Curl command for https ( SSL )
- How to generate a self-signed SSL certificate using OpenSSL?
- nodejs – error self signed certificate in certificate chain
- Convert .pem to .crt and .key
- SSL_ERROR_BAD_CERT_DOMAIN
- CFNetwork SSLHandshake failed iOS 9
- What exactly is cacert.pem for?
- OpenSSL: unable to verify the first certificate for Experian URL
- “The underlying connection was closed: An unexpected error occurred on a send.” With SSL Certificate
- ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED in Google Chrome
- How do you redirect HTTPS to HTTP?
- Could not establish secure channel for SSL/TLS with authority ‘*’
- Python requests SSL error – certificate verify failed
- How to disable cURL SSL certificate verification
- Getting error in Curl – Peer certificate cannot be authenticated with known CA certificates
- How do you sign a Certificate Signing Request with your Certification Authority?
- How can I force users to access my page over HTTPS instead of HTTP?
- Java Keytool error after importing certificate , “keytool error: java.io.FileNotFoundException & Access Denied”
- How to force Laravel Project to use HTTPS for all routes?
- How can I fix the “No certificates found – The app Chrome has requested a certificate” Android / Google Chrome issue
- WordPress wp-admin https redirect loop
- Is it safe to use sslverify => true for with wp_remote_get/wp_remote_post
- SSL Breaks WordPress CSS
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- Disable SSL / HTTPS for wordpress
- Switching MultiSite installation from HTTP to HTTPS
- Why is WordPress redirecting from http to https on a local environment?
- Howto force SSL for all requests?
- Is there a way to force ssl on certain pages
- SSL breaks customizer: page isn’t returned from ajax
- Disable all https in WordPress
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- Images causing Mixed Content with SSL
- Force HTTPS using .htaccess – stuck in redirect loop
- Favicon causes mixed content warning over SSL
- WordPress is Inserting images into Post as HTTP and not HTTPS
- Upgrade to SSL Breaks Admin Dashboard
- How to redirect url requests to https? [closed]
- Globally force SSL on all pages
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- Force home page to be https?
- What’s the right move with SSL for user based site?
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- Serve HTTPS requests from subdomain
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- Make default new sites https (multisite)
- WordPress redirect loop on nginx + apache reverse proxy