Skip to main content
URL formatting.
Source Link
MrWhite
  • 43.1k
  • 4
  • 50
  • 90

When I serve all website content from same domain (https://example.comhttps://example.com), tools like pingdom keeps yelling:

Serve static content from a cookieless domain

When I serve static content from cookie-less domain (http://cdn.example.comhttp://cdn.example.com), Chrome says:

Mixed Content: The page at 'https://example.com/'https://example.com/' was loaded over HTTPS, but requested an insecure image 'http://cdn.example.com/img/xyz.jpg''http://cdn.example.com/img/xyz.jpg'. This content should also be served over HTTPS.

How can I satisfy both conditions at the same time?

When I serve all website content from same domain (https://example.com), tools like pingdom keeps yelling:

Serve static content from a cookieless domain

When I serve static content from cookie-less domain (http://cdn.example.com), Chrome says:

Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure image 'http://cdn.example.com/img/xyz.jpg'. This content should also be served over HTTPS.

How can I satisfy both conditions at the same time?

When I serve all website content from same domain (https://example.com), tools like pingdom keeps yelling:

Serve static content from a cookieless domain

When I serve static content from cookie-less domain (http://cdn.example.com), Chrome says:

Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure image 'http://cdn.example.com/img/xyz.jpg'. This content should also be served over HTTPS.

How can I satisfy both conditions at the same time?

Source Link
notnull
  • 103
  • 2

How to get rid of mixed content warning when using cookie-less domain for static content?

When I serve all website content from same domain (https://example.com), tools like pingdom keeps yelling:

Serve static content from a cookieless domain

When I serve static content from cookie-less domain (http://cdn.example.com), Chrome says:

Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure image 'http://cdn.example.com/img/xyz.jpg'. This content should also be served over HTTPS.

How can I satisfy both conditions at the same time?