pipwerks / scorm-api-wrapper

The pipwerks SCORM API Wrapper
http://pipwerks.com
357 stars 125 forks source link

Added checks to prevent Same Origin Policy #44

Open BrettSheleski opened 5 years ago

BrettSheleski commented 5 years ago

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.

Sangrene commented 4 years ago

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