Home >Web Front-end >HTML Tutorial >Same Origin Policy for HTML in Mobile Apps

Same Origin Policy for HTML in Mobile Apps

WBOY
WBOYforward
2023-09-17 13:29:07729browse

Same Origin Policy for HTML in Mobile Apps

Similar rules apply to native mobile apps and apps. Just add the domain to PhoneGap or Cardova's whitelist.

The device acts as a server and can access the content in the URL. If using PhoneGap, add the domain to a whitelist or wildcard.

When dealing with native applications, you want to make requests from file:// rather than https://. However, the request is not made over the HTTP protocol, so the same rules do not apply.

Making requests from the native mobile app will allow you to make requests to any domain without any major issues.

Making requests from the native mobile app will allow you to make requests to any domain. p>

The above is the detailed content of Same Origin Policy for HTML in Mobile Apps. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete