2016-09-29 2 views
0

webview를 사용하여 Google 크롬 앱에 외부 웹 사이트를로드하는 중 로컬 IP 대신 프록시 IP를 통해 URL을로드하려고합니다. 내가 webview 태그를 확인했지만 프록시에 대한 옵션을 찾을 수 없습니다. 거기에 이것을 달성하는 방법이 있습니다.크롬 앱 - Webview 프록시 지원 [PC]

window.html는

<!DOCTYPE html> 
<html> 
    <head> 
    </head> 
    <body> 
    <div>Hello, world!</div> 
    <webview id="wv1" partition="p1" style="width: 450px; height: 300px; border: 2px solid red" src="http://www.google.com"></webview> 
    <webview id="wv2" partition="p2" style="width: 450px; height: 300px; border: 2px solid red" src="http://www.nytimes.com"></webview> 
    <webview id="wv3" partition="p3" style="width: 450px; height: 300px; border: 2px solid red" src="http://www.stackoverflow.com"></webview> 
    <webview id="wv4" partition="p4" style="width: 450px; height: 300px; border: 2px solid red" src="http://www.yahoo.com"></webview> 
    </body> 
</html> 

답변

0

불행하게도, 응용 프로그램에서 해당에 영향을 미칠 수있는 방법은 없습니다.

아마도 Chrome 앱은 브라우저의 프록시 설정을 상속하며, <webview>은 영향을 미치지 않습니다. 해당 설정을 조작하려면 have an API 확장자가 필요하지만 Apps do not입니다.