Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7799847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:26:18+00:00 2026-06-02T00:26:18+00:00

So I have some video files on Rackspace Cloud Files but since I use

  • 0

So I have some video files on Rackspace Cloud Files but since I use HTML5 functions (.toDataURL()) “SECURITY_ERR: DOM Exception 18” keeps getting thrown. My code works fine when I use a video file on my server.

So I read up about CORS and modified my Rackspace Cloud Files headers like this:

access-control-allow-credentials:   true    
access-control-allow-origin:    [my domain here]    
access-control-allow-headers:   Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control
access-control-allow-methods:   OPTIONS, GET, POST  
access-control-expose-headers:  X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name
Content-Type:   video/webm

But the DOM Exception 18 error keeps getting thrown. I don’t know what the problem is. I checked to see if the HTTP headers were being outputted by my video files on Rackspace with web-sniffer.net and they are, so what’s the problem, why doesn’t it work?

I have tried it on IE9, Chrome 19, Safari 5.1.2, and Aurora 12.0a2, they don’t work on any of those browsers so I’m certain that this is not a browser issue.

I just have to get rid of this DOM Exception 18 error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:26:20+00:00Added an answer on June 2, 2026 at 12:26 am

    toDataURL() will not work if your content is on a CDN (or any other host than the current)
    that’s a security restriction of the CANVAS element.

    compare http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#security-with-canvas-elements for details on what’s prohibited

    basically whenever you want to do something with images or videos within a canvas and save the result you will have to have all prior content on the same domain. one workaround would be to grab the required files and save them temporarily while the user edits it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written some code to display a YouTube video on my page but
I have some files stored at amazon. all in private mode, and since I
I have some video files that will be played with the help of a
I have some FLV video files to be reproduced sequentially by a Flash video
As above really, I have some integration tests that use files from a relative
I have some video files stored on my local server. I want playback to
In my app i have to play some video files.I also have to play
I have some video files.I need to show every video file as a ImageView
I have some audio and video files stored in a server. I need to
I have some large files (images and video) which I need to store in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.