For security reasons, your local drive is declared to be “other-domain” and will taint the canvas.
(That’s because your most sensitive info is likely on your local drive!).
While testing try these workarounds:
- Put all page related files (.html, .jpg, .js, .css, etc) on your desktop (not in sub-folders).
- Post your images to a site that supports cross-domain sharing (like dropbox.com or GitHub). Be sure you put your images in dropbox’s public folder and also set the cross origin flag when downloading the image (
var img=new Image(); img.crossOrigin="anonymous"
…) - Install a webserver on your development computer (IIS and PHP web servers both have free editions that work nicely on a local computer).
Related Posts:
- How to clear the canvas for redrawing
- Crop the image using JavaScript
- How to fix getImageData() error The canvas has been tainted by cross-origin data?
- How to clear the canvas for redrawing
- What is JSONP, and why was it created?
- React – uncaught TypeError: Cannot read property ‘setState’ of undefined
- Cannot read property ‘push’ of undefined when combining arrays
- How can I remove a specific item from an array?
- Add swipe left/right to web page, but use default swipe up/down
- Check if checkbox is checked with jQuery
- What does “res.render” do, and what does the html file look like?
- How to pause javascript code execution for 2 seconds [duplicate]
- Getting Error “Form submission canceled because the form is not connected”
- How to implement navbar using react
- function updateMap for Google Maps API
- Loop inside React JSX
- Encode URL in JavaScript?
- Uncaught TypeError : cannot read property ‘replace’ of undefined In Grid
- Disable/enable an input with jQuery?
- npm – EPERM: operation not permitted on Windows
- Module not found can’t resolve
- ChangeDate – Date Picker Bootstrap
- Is there a sleep function in JavaScript?
- scrollIntoView Scrolls just too far
- Javascript Uncaught TypeError : .split is not a function
- Uncaught TypeError: Cannot read property ‘msie’ of undefined
- How to go from one page to another page using javascript?
- How to update array value javascript?
- DOMException: Failed to load because no supported source was found
- Counting the occurrences / frequency of array elements
- how to download file in react js
- TypeError: $(…).DataTable is not a function
- Call python function from JS
- How to add onload event to a div element
- Access Control Origin Header error using Axios
- Structs in Javascript
- Refused to execute script, strict MIME type checking is enabled?
- Error: [ng:areq] from angular controller
- getElementsByAttribute() is not a function
- Javascript onload not working
- How to parse float with two decimal places in javascript?
- Checking for duplicate strings in JavaScript array
- How to get current date in jQuery?
- Print the contents of a DIV
- Remove all special characters except space from a string using JavaScript
- setInterval with loop time
- JavaScript by reference vs. by value
- What does the .subscribe() function do?
- is there something like isset of php in javascript/jQuery?
- jQuery – Dynamically Create Button and Attach Event Handler
- Highlight a word with jQuery
- How to disable auto-start of “Node.js: Server-side JavaScript” when using Adobe Dreamweaver?
- Regular expression to validate US phone numbers?
- How should I initialize jQuery?
- How to reload page every 5 seconds?
- How do I handle newlines in JSON?
- Update style of a component onScroll in React.js
- Fire oninput event with jQuery
- WordPress Bootstrap Handburger Menu Wont Open
- Reset Undo on the tinymce editor
- Detecting WordPress Customizer Panel
- How to disable hoverIntent in WordPress 3.3 admin
- Customizer – instantiating settings and controls via javascript
- How do I enqueue(or delay loading of) tags in individual page posts?
- JavaScript in page doesn’t open new window [closed]
- Animations are not being triggered on Scroll
- Preserve Javascript Through Customizer Preview Navigation
- JavaScript in WordPress Customizer
- How to use div -ids in url to jump to specific post…Is trailing slash the culprit?
- can a buttongroup have a label?
- How Can I Add OnClick Event To A Specific WordPress Menu Link
- Preloader for a WordPress Site
- Trying to integrate Zoho Campaign Form [closed]
- What’s the most efficient way to include this javascript in only a single post?
- InnerBlocks restricting does not work on nested blocks
- How to add customizer control via javascript ( wp.customizer.control.add )
- How to generate the COOKIEHASH from JavaScript
- How to execute Javascript on a WordPress page?
- Removing auto versioning of JS and loading to header
- Gutenberg select excerpt, use generated excerpt or use more block excerpt
- Unable To Call Javascript With Enqueue
- How to integrate a JS fiddle?
- Problem after upgrade to 3.6.1
- Hovercards and other hover over image functions don’t work anymore!
- Load JavaScript on specific page with @wordpress compiler
- How WP does Mortgage affordability calculation
- Putting custom html/js page into Elementor as it’s own block
- java console error about touch navigation
- When adding google tag script in website, functionality not working
- Update block once an API request returns with a value
- How to improve WP-Rest atrocious response time?
- How should I identify the inline javascript that is the dependent of a wp_enqueue_script?
- How do I add a class to Customizer preview based on class of Customizer control? (Customizer Javascript API)
- Open image gallery on link click
- WordPress 4.2 mce-views migration guide?
- Loaded JavaScript file not showing [duplicate]
- How To Include JS Script with WP 2023 Theme
- Update js file on wordpress page after making changes
- Gutenberg core/file add style support in js/ json
- uploading image to wordpress site with javascript fetch function failed