scorm-api-wrapper icon indicating copy to clipboard operation
scorm-api-wrapper copied to clipboard

Added checks to prevent Same Origin Policy

Open BrettSheleski opened this issue 5 years ago • 1 comments

I added this as we were hosting SCORM packages made by various authors but not using a SCORM engine on our site. We found that if another site happened open a SCO in a new tab/window it caused a Same Origin Policy security exception resulting in the content to not render.

I added a check to prevent this exception from occurring and instead return a null API object.

BrettSheleski avatar Jun 04 '19 13:06 BrettSheleski

Thanks for this, spared me a few headaches ! Should merge.

Sangrene avatar Feb 11 '20 11:02 Sangrene