Fix cross-origin security check in Safari (#37)