 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Cross-origin data in HTML5 Canvas
For cross-origin data in canvas, add the following attribute to the <audio? or <video> element −
<img src="..." crossorigin="Anonymous" /> <video src="..." crossorigin="Anonymous"></video>
To enable cross-origin resource sharing, use the following. It allows the images to pass the HTTP header with an image response.
Access-Control-Allow-Origin: *
Or to solve the cross-origin data issue, use the following parameter −
--allow-file-access-from-files
Advertisements
 