{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/1957","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/1957/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/1957/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/1957/events","html_url":"https://github.com/kangax/fabric.js/issues/1957","id":56262677,"number":1957,"title":"IE: SCRIPT5022: SecurityError","user":{"login":"LIDJungle","id":5067415,"avatar_url":"https://avatars.githubusercontent.com/u/5067415?v=3","gravatar_id":"","url":"https://api.github.com/users/LIDJungle","html_url":"https://github.com/LIDJungle","followers_url":"https://api.github.com/users/LIDJungle/followers","following_url":"https://api.github.com/users/LIDJungle/following{/other_user}","gists_url":"https://api.github.com/users/LIDJungle/gists{/gist_id}","starred_url":"https://api.github.com/users/LIDJungle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LIDJungle/subscriptions","organizations_url":"https://api.github.com/users/LIDJungle/orgs","repos_url":"https://api.github.com/users/LIDJungle/repos","events_url":"https://api.github.com/users/LIDJungle/events{/privacy}","received_events_url":"https://api.github.com/users/LIDJungle/received_events","type":"User","site_admin":false},"labels":[{"id":104995432,"url":"https://api.github.com/repos/kangax/fabric.js/labels/browser_bug","name":"browser_bug","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-02-02T17:01:44Z","updated_at":"2016-11-24T13:07:29Z","closed_at":null,"body":"SCRIPT5022: SecurityError \nfabric.js, line 18466 character 11\n\nThis happens when I have saved a presentation with images. Looks to be a CORS error, but I'm on the same server.\n\nHere is the JSON for the offending presentation. I am on shineemc.com, but the error is thrown when trying to load the \"awesome_tiger\" SVG. This code all works fine in Firefox or Chrome.\n\nDoes anyone know a workaround for this issue?\n\nJSON:\n`{\"objects\":[{\"type\":\"image\",\"originX\":\"left\",\"originY\":\"top\",\"left\":107.46325411445987,\"top\":22.34196846601907,\"width\":900,\"height\":900,\"fill\":\"rgb(0,0,0)\",\"stroke\":null,\"strokeWidth\":1,\"strokeDashArray\":null,\"strokeLineCap\":\"butt\",\"strokeLineJoin\":\"miter\",\"strokeMiterLimit\":10,\"scaleX\":0.03649580141518866,\"scaleY\":0.03611752386062922,\"angle\":0,\"flipX\":false,\"flipY\":false,\"opacity\":1,\"shadow\":null,\"visible\":true,\"clipTo\":null,\"backgroundColor\":\"\",\"src\":\"http://shineemc.com/shine/stock/awesome_tiger.svg\",\"filters\":[{\"type\":\"Pixelate\",\"blocksize\":1}],\"crossOrigin\":\"\"},{\"type\":\"image\",\"originX\":\"left\",\"originY\":\"top\",\"left\":3.667444098649749,\"top\":23.26017963861261,\"width\":900,\"height\":900,\"fill\":\"rgb(0,0,0)\",\"stroke\":null,\"strokeWidth\":1,\"strokeDashArray\":null,\"strokeLineCap\":\"butt\",\"strokeLineJoin\":\"miter\",\"strokeMiterLimit\":10,\"scaleX\":0.03684055774117561,\"scaleY\":0.03396535896085542,\"angle\":0,\"flipX\":true,\"flipY\":false,\"opacity\":1,\"shadow\":null,\"visible\":true,\"clipTo\":null,\"backgroundColor\":\"\",\"src\":\"http://shineemc.com/shine/stock/awesome_tiger.svg\",\"filters\":[{\"type\":\"Pixelate\",\"blocksize\":1}],\"crossOrigin\":\"\"},{\"type\":\"i-text\",\"originX\":\"left\",\"originY\":\"top\",\"left\":29.757250393282494,\"top\":48.622734977019064,\"width\":271.24658203125,\"height\":63.7,\"fill\":\"#ffff00\",\"stroke\":\"#ff8000\",\"strokeWidth\":1,\"strokeDashArray\":null,\"strokeLineCap\":\"butt\",\"strokeLineJoin\":\"miter\",\"strokeMiterLimit\":10,\"scaleX\":0.31032712544298274,\"scaleY\":0.39577553933369664,\"angle\":0,\"flipX\":false,\"flipY\":false,\"opacity\":1,\"shadow\":null,\"visible\":true,\"clipTo\":null,\"backgroundColor\":\"\",\"text\":\"Chinese Food\",\"fontSize\":49,\"fontWeight\":\"normal\",\"fontFamily\":\"amaranthregular\",\"fontStyle\":\"\",\"lineHeight\":1.3,\"textDecoration\":\"\",\"textAlign\":\"left\",\"path\":null,\"textBackgroundColor\":\"\",\"useNative\":true,\"styles\":{}},{\"type\":\"i-text\",\"originX\":\"left\",\"originY\":\"top\",\"left\":10.5621952727132,\"top\":-3.2599591590493056,\"width\":361.78173828125,\"height\":63.7,\"fill\":\"#ffffff\",\"stroke\":\"#ff8000\",\"strokeWidth\":1,\"strokeDashArray\":null,\"strokeLineCap\":\"butt\",\"strokeLineJoin\":\"miter\",\"strokeMiterLimit\":10,\"scaleX\":0.3387039547159154,\"scaleY\":0.4314281344568717,\"angle\":0,\"flipX\":false,\"flipY\":false,\"opacity\":1,\"shadow\":null,\"visible\":true,\"clipTo\":null,\"backgroundColor\":\"\",\"text\":\"Roaring Tigers\",\"fontSize\":49,\"fontWeight\":\"normal\",\"fontFamily\":\"paloaltoheavy\",\"fontStyle\":\"\",\"lineHeight\":1.3,\"textDecoration\":\"\",\"textAlign\":\"left\",\"path\":null,\"textBackgroundColor\":\"\",\"useNative\":true,\"styles\":{}},{\"type\":\"i-text\",\"originX\":\"left\",\"originY\":\"top\",\"left\":45.1776410691081,\"top\":26.690915614716108,\"width\":173.701171875,\"height\":63.7,\"fill\":\"#ff0000\",\"stroke\":\"#000000\",\"strokeWidth\":1,\"strokeDashArray\":null,\"strokeLineCap\":\"butt\",\"strokeLineJoin\":\"miter\",\"strokeMiterLimit\":10,\"scaleX\":0.3070655868305623,\"scaleY\":0.3763976686824566,\"angle\":0,\"flipX\":false,\"flipY\":false,\"opacity\":1,\"shadow\":null,\"visible\":true,\"clipTo\":null,\"backgroundColor\":\"\",\"text\":\"Drive Thru\",\"fontSize\":49,\"fontWeight\":\"normal\",\"fontFamily\":\"boogaloo\",\"fontStyle\":\"\",\"lineHeight\":1.3,\"textDecoration\":\"\",\"textAlign\":\"left\",\"path\":null,\"textBackgroundColor\":\"\",\"useNative\":true,\"styles\":{}}],\"background\":\"#d4d4d4\"}`\n\nSave: \n       `$.ajax({\n        type: 'POST',\n        url: 'data/fabric/save.php',\n        data: {\n            task: 'save',\n            img: canvas.toDataURL('png'),\n            json: JSON.stringify(canvas.toJSON(['transition'])),\n            name: name,\n            coid: companyId,\n            id: currPresId,\n            presId: 0\n        },\n        success: function(json) {\n            console.log(\"success callback fired.\");\n            if (!json.success) {\n                alert('Error!'); return;\n            } else {\n                scope.dialog('savePresentation', \"Presentation saved!\", 600, 'auto');\n                currPresId = '';\n                scope.listPresentations();\n                scope.getApprovalList();\n                $('#presName').text(name);\n                zoomIt(oldZoom);\n                setTimeout(function () {\n                    scope.closeDialog('savePresentation');\n                    scope.$apply();\n                }, 2000);\n            }\n        }\n    });`\nLoad:\n    `$.ajax({\n        type: 'GET',\n        url: 'data/fabric/loadPresentation.php',\n        data: {\n            id: id,\n            t: t\n        },\n        success: function(data) {\n            var j = JSON.parse(data.json);\n            currPresName = data.name;\n            $('#presName').text(currPresName);\n            currPresId = data.id;\n            origPresId = data.presId;\n            canvas.loadFromJSON(j);\n            canvas.transition = j.transition;\n            $('#bgcolor').val(canvas.backgroundColor);  \n        }\n    });`\n## <bountysource-plugin>\n\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8225406-ie-script5022-securityerror?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github).\n</bountysource-plugin>\n"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/262772483","html_url":"https://github.com/kangax/fabric.js/issues/1957#issuecomment-262772483","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/1957","id":262772483,"user":{"login":"asturur","id":1194048,"avatar_url":"https://avatars.githubusercontent.com/u/1194048?v=3","gravatar_id":"","url":"https://api.github.com/users/asturur","html_url":"https://github.com/asturur","followers_url":"https://api.github.com/users/asturur/followers","following_url":"https://api.github.com/users/asturur/following{/other_user}","gists_url":"https://api.github.com/users/asturur/gists{/gist_id}","starred_url":"https://api.github.com/users/asturur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asturur/subscriptions","organizations_url":"https://api.github.com/users/asturur/orgs","repos_url":"https://api.github.com/users/asturur/repos","events_url":"https://api.github.com/users/asturur/events{/privacy}","received_events_url":"https://api.github.com/users/asturur/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T13:07:29Z","updated_at":"2016-11-24T13:07:29Z","body":"take care that ie11 does not handle very good image coordinates with decimals."}}
{"actor":{"display_login":"asturur"}}