Is it possible to allow Cross Site Scripting (XSS) in Mobile safari?

Nathan picture Nathan · Mar 15, 2012 · Viewed 9.5k times · Source

I am building a hybrid app (HTML,CSS, JS + Native iOS code), and Would like to make calls to a web service, but this is being blocked currently by the XSS Security.

What do I need to do to turn off this security feature (or more likely provide a whitelist that is allowed to connect?)

Thanks for the help!

Answer

Yusuf X picture Yusuf X · Mar 13, 2014

Yes.

You can use Cross Origin Resource Sharing, iff you're allowed to configure the server to support it, and it works on enough browsers for your needs.