Same Origin Policy for HTML in Mobile Apps

WBOY
Release: 2023-09-17 13:29:07
forward
700 people have browsed it

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template