add security error handler
Merge pull request #605 from johnikx/feature-security-error-handler

added security error handler to asset loading