HOW TO HANDLE NOTALLOWEDERROR IN SAFARI