简体   繁体   中英

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

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!

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.

No.

XSS cannot be disabled in any browser - otherwise hackers could easily steal all your money from your bank account. So this isn't a path that you can, should or want to take.

Ask another question where you describe more clearly what you need to achieve and we can probably help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM