<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hello @Ohad: in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081663#M61858</link>
    <description>&lt;P&gt;Hello @Ohad:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;I managed to work out the https communication but it only runs fine when I use the Intel XDK debug tag... when I generate the APK does not work (error 13, Policy violation detected). I tried to search for some more information about this specific error but did not find it. Do you know why it is reporting such error? Why the intel security plugin works fine in debug mode and fail when the apk is generated?&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2016 08:40:30 GMT</pubDate>
    <dc:creator>Valery_M_</dc:creator>
    <dc:date>2016-05-16T08:40:30Z</dc:date>
    <item>
      <title>Intel xdk ssl security</title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081660#M61855</link>
      <description>&lt;P&gt;I want to use intel xdk's ssl security plugin i have looked at the following &amp;nbsp;https://software.intel.com/en-us/node/564377 im not sure&lt;/P&gt;

&lt;P&gt;How i would translate that to my below code. can anyone help?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;var TransResponse;

 function Transport(parameters,Page) {

var http = new XMLHttpRequest();

http.open("POST", "http:/000.000.000.000/"+Page, false);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", parameters.length);

http.onreadystatechange = function() {//Call a function when the state changes.
   if(http.readyState == 4 &amp;amp;&amp;amp; http.status == 200) {
      
     TransResponse=http.response;
     }
}
http.send(parameters);
return TransResponse;
 }&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 22:01:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081660#M61855</guid>
      <dc:creator>Alfred_M_</dc:creator>
      <dc:date>2016-04-09T22:01:12Z</dc:date>
    </item>
    <item>
      <title>Alfred -- I'll ask one of the</title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081661#M61856</link>
      <description>&lt;P&gt;Alfred -- I'll ask one of the App Security API experts to reply.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 00:59:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081661#M61856</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-04-13T00:59:10Z</dc:date>
    </item>
    <item>
      <title>Hi Alfred, </title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081662#M61857</link>
      <description>&lt;P&gt;Hi Alfred,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is code that implements the Transport function above using the App Security API plugin:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function Transport(parameters, page){    			
	
	// create a connection instance 
	intel.security.secureTransport.open(
		function (instanceID){
			alert('open succeeded, instanceID = '+instanceID);
			
			// set headers 
			intel.security.secureTransport.setHeaders(
				function() {
					alert('setHeaders succeeded');
					
					// send the request 
					intel.security.secureTransport.sendRequest(
						function(response){									
							alert('sendRequest succeeded');
							
							// assign response HTTP status
							var responseHttpStatus = response.responseHttpStatus;

							// assign response body
							var responseBody = response.responseBody;

							// assign response header
							var responseHeader = response.responseHeader;
							
							// assign the response body to TransResponse variable
							TransResponse = responseBody;
							alert('responseBody = '+responseBody);
							
							// destroy the trsnport handle
							intel.security.secureTransport.destroy(
								function (){
									alert('all pass');
								},
								failCallback, 
								instanceID);
								
						},
						failCallback,
						{'instanceID':instanceID, 'requestBody': parameters});
						
				},
				failCallback,
				{'instanceID':instanceID, 'headers':{"Content-type":"application/x-www-form-urlencoded"}});
				
				
		}, 
		failCallback, 
		{'url':'http:/000.000.000.000/'+page, 'method':'POST'});
			
}
function failCallback(error) {
	alert("Fail, error code is: " + error.code + ", error message is: " + error.message);
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please note that it includes many alerts, I hope it will help you with your first debugging.&lt;/P&gt;

&lt;P&gt;Please let us know if you need further help.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; Ohad&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 13:28:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081662#M61857</guid>
      <dc:creator>Ohad_B_Intel</dc:creator>
      <dc:date>2016-04-13T13:28:45Z</dc:date>
    </item>
    <item>
      <title>Hello @Ohad:</title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081663#M61858</link>
      <description>&lt;P&gt;Hello @Ohad:&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;&amp;nbsp;I managed to work out the https communication but it only runs fine when I use the Intel XDK debug tag... when I generate the APK does not work (error 13, Policy violation detected). I tried to search for some more information about this specific error but did not find it. Do you know why it is reporting such error? Why the intel security plugin works fine in debug mode and fail when the apk is generated?&lt;/P&gt;

&lt;P style="word-wrap: break-word; font-size: 12px;"&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 08:40:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081663#M61858</guid>
      <dc:creator>Valery_M_</dc:creator>
      <dc:date>2016-05-16T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Valery -- I suspect your</title>
      <link>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081664#M61859</link>
      <description>&lt;DIV class="field field-name-comment-body field-type-text-long field-label-hidden"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even"&gt;
			&lt;P&gt;Valery -- I suspect your whitelist settings are the problem (and CSP tag). In the Debug tab those settings are mostly set to be "wide open" for easier debugging, but in the built app they follow whatever you've set in your app. I recommend you use the "Cordova Android Whitelist" setting and that you DO use CSP. See these links as starting points:&lt;/P&gt;

			&lt;UL&gt;
				&lt;LI&gt;&lt;A href="https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-with-intel-xdk"&gt;https://software.intel.com/en-us/xdk/docs/using-cordova-whitelist-rules-...&lt;/A&gt;&lt;/LI&gt;
				&lt;LI&gt;&lt;A href="http://www.html5rocks.com/en/tutorials/security/content-security-policy/"&gt;http://www.html5rocks.com/en/tutorials/security/content-security-policy/&lt;/A&gt;&lt;/LI&gt;
			&lt;/UL&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 May 2016 17:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Intel-xdk-ssl-security/m-p/1081664#M61859</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-05-16T17:48:11Z</dc:date>
    </item>
  </channel>
</rss>

