docs($http): use HTTPS URLs in JSONP example
This commit is contained in:
+2
-2
@@ -590,11 +590,11 @@ function $HttpProvider() {
|
||||
<button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
|
||||
<button id="samplejsonpbtn"
|
||||
ng-click="updateModel('JSONP',
|
||||
'http://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
|
||||
'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
|
||||
Sample JSONP
|
||||
</button>
|
||||
<button id="invalidjsonpbtn"
|
||||
ng-click="updateModel('JSONP', 'http://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
|
||||
ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
|
||||
Invalid JSONP
|
||||
</button>
|
||||
<pre>http status code: {{status}}</pre>
|
||||
|
||||
Reference in New Issue
Block a user