Fix Safari Cross-Domain issue