Fix "Access-Control-Allow-Origin"-error on Safari browser
in Safari browser the site stays empty. for JSONP request, jsonp=js_function must be passed, or when callback=? passed, then jQuery replace it with temp method name. jQuery API: If the URL includes the string "callback=?" (or similar, as defined by the server-side API), the request is treated as JSONP instead. Change-Id: Ia19bb2bd0b7e6a391c5f8c349920189e7671a1d9
This commit is contained in:
parent
21deb87e22
commit
e19513ce99
@ -39,7 +39,7 @@
|
||||
|
||||
<script>
|
||||
$.getJSON(
|
||||
'https://www.googleapis.com/storage/v1beta2/b/gerrit-releases/o?projection=noAcl&fields=items(name%2Csize)',
|
||||
'https://www.googleapis.com/storage/v1beta2/b/gerrit-releases/o?projection=noAcl&fields=items(name%2Csize)&callback=?',
|
||||
function(data) {
|
||||
var doc = document;
|
||||
var frg = doc.createDocumentFragment();
|
||||
|
Loading…
x
Reference in New Issue
Block a user