Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed security error when tainting cross-origin image #241

Open
wants to merge 1 commit into
base: WIP-2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css/Jcrop.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Jcrop.css v2.0.2 - build: 20150831
/*! Jcrop.css v2.0.2 - build: 20160512
* Copyright 2008-2015 Tapmodo Interactive LLC
* Free software under MIT License
**/
Expand Down
2 changes: 1 addition & 1 deletion css/Jcrop.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/Jcrop.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Jcrop.js v2.0.2 - build: 20150831
/*! Jcrop.js v2.0.2 - build: 20160512
* @copyright 2008-2015 Tapmodo Interactive LLC
* @license Free software under MIT License
* @website http://jcrop.org/
Expand Down Expand Up @@ -1066,7 +1066,7 @@ Jcrop.registerStageType('Canvas',CanvasStage);
load: function(){
var t = this;
var el = t.element;

el.crossOrigin = "Anonymous";
el.src = t.src;

if (t.isLoaded()) t.fireCallback();
Expand Down
6 changes: 3 additions & 3 deletions js/Jcrop.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/component/ImageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
load: function(){
var t = this;
var el = t.element;

el.crossOrigin = "Anonymous";
el.src = t.src;

if (t.isLoaded()) t.fireCallback();
Expand Down