<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:kevinlee324@gmail.com" title="Kevin Lee <kevinlee324@gmail.com>"> <span class="fn">Kevin Lee</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Safari fails on request to a non-authenticated API"
href="https://bugs.webkit.org/show_bug.cgi?id=136081">bug 136081</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>kevinlee324@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Safari fails on request to a non-authenticated API"
href="https://bugs.webkit.org/show_bug.cgi?id=136081#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Safari fails on request to a non-authenticated API"
href="https://bugs.webkit.org/show_bug.cgi?id=136081">bug 136081</a>
from <span class="vcard"><a class="email" href="mailto:kevinlee324@gmail.com" title="Kevin Lee <kevinlee324@gmail.com>"> <span class="fn">Kevin Lee</span></a>
</span></b>
<pre>I'm experiencing the same issue with the following code snippet:
$http({
method: 'post',
url: $scope.service !== 'Photography' ? '<a href="https://script.google.com/macros/s/identifyinginformationhere/exec">https://script.google.com/macros/s/identifyinginformationhere/exec</a>' : '<a href="https://script.google.com/macros/s/differentinformationhere/exec">https://script.google.com/macros/s/differentinformationhere/exec</a>',
params: dict
})
.success(successf)
.error(errorf);
which generates the following three debugging output:
[Error] Failed to load resource: the server responded with a status of 405 (Method Not Allowed)
[Error] Failed to load resource: Cannot make any requests from null.
XMLHttpRequest cannot load <a href="https://script.googleusercontent.com/macros/echo?user_content_key=moredifferentinformationhere">https://script.googleusercontent.com/macros/echo?user_content_key=moredifferentinformationhere</a>. Cannot make any requests from null.
It seems to be a CORS issue. This code works in all other browsers, just like Cory's. The request actually makes it through, because I can see modifications on the Google spreadsheet the request POSTs to, but unlike the other browsers I get a 405 and error runs. On chrome I get a 302 and successf runs.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>