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
- WordPress : To load all asset files coming from HTTP to HTTPS?
- 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?
- 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?
- NET::ERR_CERT_REVOKED in Chrome, when the certificate is not actually revoked
- How to generate a self-signed SSL certificate using OpenSSL?
- Convert .pem to .crt and .key
- What exactly is cacert.pem for?
- OpenSSL: unable to verify the first certificate for Experian URL
- WordPress wp-admin https redirect loop
- 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?
- SSL breaks customizer: page isn’t returned from ajax
- Disable all https in WordPress
- Images causing Mixed Content with SSL
- Force HTTPS using .htaccess – stuck in redirect loop
- Favicon causes mixed content warning over SSL
- How to redirect url requests to https? [closed]
- Globally force SSL on all pages
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- WordPress redirect loop on nginx + apache reverse proxy
- Enabling SSL on wordpress results in 404
- SSL: How to make customizer images Protocol Relative in WordPress?
- AJAX requests broken due to HTTPS for wp-admin
- Enable Full SSL for WordPress
- WordPress Dashboards: slowness and timeouts
- Https Redirect infinite loop in Mobile browsers
- 403 error on admin login page
- XML asset fails to load using https
- Search and replace http:// links to https:// to get the green padlock
- wp-cli command throws error : “SSL routines:tls_process_server_certificate:certificate verify failed” while querying https website
- How to set up HTTPS WordPress from Install Step?
- How do I set up a local version of my https wordpress site for testing and development using MAMP
- Too many redirects after added SSL redirect on port 80 virtual host
- Images loading over http instead of https
- Redirect the whole blog to SSL but not the RSS feed (under Nginx)
- Domain Mapping for WordPress MU and https redirection – How to?
- How to keep WP from using https to get to wordpress.org?
- Disable WordPress accessing WordPress.org to check for updates
- How to protect login via SSL but not the rest of the dashboard
- The REST API request failed due to an error. cURL error 60: SSL certificate problem: certificate has expired
- Do I install WordPress from my Cpanel on https or http, if my website has valid certificate?
- ERR_SSL_PROTOCOL_ERROR
- Since moving HTTPS using cloudflare, the admin and login pages no longer work
- site on subdomain is redirecting to main site after installing wildcard ssl cert on both
- Create a new hyperlink to wordpress blog
- WordPress Insecure Content
- SSL certificate breaks CSS (in combination with W3TC)
- My site thinks it’s secure when it is fact not
- I would like to add ssl certificate to my already existing wordpress site
- How do I secure a subdomain using UCC SSL?
- Serve HTTPS requests from subdomain
- Generate all urls with https
- Remove “www” and redirect to “https” with nginx
- Generating a self-signed cert with openssl that works in Chrome 58
- Https Website: CSS and JS files load in http and admin page does not load too