---
url: https://docs.artemsemkin.com/velum/wp/help/slider-blank-cdn-images.md
description: >-
  Fix a blank WebGL slider when your images come from a CDN on another domain
  and the console says "WebGL can't use images from", by switching on the CORS
  header (Access-Control-Allow-Origin) in the CDN or by serving the images from
  your own domain.
---

# The slider is blank when images come from a CDN

A slider that draws its pictures with WebGL, such as the **Distortion Slider**, stays blank, and the browser console says:

::: danger
WebGL can't use images from \<host>: that host must send Access-Control-Allow-Origin (CORS) for them
:::

To see the console, open the page, press F12 and click the **Console** tab. The message names the host that serves your images. It means the images come from another domain, such as a CDN, and that CDN does not allow other sites to read them. WebGL needs that permission. The CDN has to send the header `Access-Control-Allow-Origin: *` with every image response, not only when the browser asks for it: in Chrome a header that is sent only on request can be cached away.

## Switch on the header in your CDN

Find your CDN in the table and make the change.

| CDN | What to do |
|---|---|
| Jetpack Site Accelerator, Optimole, EWWW Easy IO, ShortPixel, Cloudflare Images | Nothing: they allow it already. |
| Cloudflare proxy, QUIC.cloud, SiteGround or Hostinger CDN | Nothing: they serve the images from your own domain. |
| Bunny | **Pull Zone → Headers**: switch on **Add CORS headers**, and add the extensions of your images (`jpg`, `jpeg`, `png`, `webp`, `avif`) to the extension list. |
| KeyCDN | **Zone settings**: switch **CORS** on. |
| Amazon S3 | Add a CORS rule to the bucket with `AllowedOrigins` set to your site, for example `["https://your-site.com"]`, and `AllowedMethods` set to `["GET", "HEAD"]`. |
| CloudFront | Attach the managed response headers policy **SimpleCORS** to the behavior, then invalidate `/*`. |
| WP Rocket's RocketCDN | It sets the header for fonts only. Ask WP Rocket support to enable it for images. |

When you have changed the setting, purge the CDN's cache, because the copies it holds have no header yet, then reload the page in a private window. The slider should show every slide.

## Serve the images from your own domain

If your CDN is not in the table, or has no such setting, switch the CDN off for images. In most CDN and optimization plugins that means leaving image extensions out of the files the CDN serves. Your images then load from your own domain and need no header.

## Videos from a CDN

Velum asks for the CORS permission for images only. Video files on a CDN on another domain are not tested with Velum, so keep the files of a video slide on your own domain: leave `.mp4` out of the files your CDN serves.

## If none of this applies

Open a ticket on the [support forum](https://artemsemkin.ticksy.com/). Write the address of the page, the CDN or plugin you use and the exact message from the console.
