Fix inserting of subresources origin-only