Note that there are some explanatory texts on larger screens.

plurals
  1. POAccess-Control-Allow-Origin error on same domain
    primarykey
    data
    text
    <p>My page has been working for a while now, and all of a sudden its giving me this cross domain request error. The odd thing is I am making a relative request to the file so I do not see why I am getting this. </p> <p>Error:</p> <p>OPTIONS <a href="https://www.aliahealthcare.com/php/central.php?logout=true" rel="nofollow">https://www.aliahealthcare.com/php/central.php?logout=true</a> Origin <a href="https://aliahealthcare.com" rel="nofollow">https://aliahealthcare.com</a> is not allowed by Access-Control-Allow-Origin. </p> <p>send jquery-1.7.2.min.js:4 f.extend.ajax jquery-1.7.2.min.js:4 logout aliahealthcare.com/:841 picker aliahealthcare.com/:901 (anonymous function) aliahealthcare.com/:713 f.event.dispatch jquery-1.7.2.min.js:3 h.handle.i jquery-1.7.2.min.js:3</p> <p>XMLHttpRequest cannot load <a href="https://www.aliahealthcare.com/php/central.php?logout=true" rel="nofollow">https://www.aliahealthcare.com/php/central.php?logout=true</a>. </p> <p>Origin <a href="https://aliahealthcare.com" rel="nofollow">https://aliahealthcare.com</a> is not allowed by Access-Control-Allow-Origin. aliahealthcare.com/:1</p> <p>Code:</p> <pre><code> function logout (){ $.ajax({ type: "GET", url: "/php/central.php", data: { logout: 'true' }, success: function(msg) { if(msg=='1'){ location.reload(); } else if(msg=='0') { alert("Logout Failed! Please try again!") } }, error:function(msg){ alert("Error"+msg); } }); } </code></pre> <p>Result when outputting result of ajax:</p> <p><code>Object {readyState: 1, setRequestHeader: function, getAllResponseHeaders: function, getResponseHeader: function, overrideMimeType: function…} abort: function (a){a=a||"abort",p&amp;&amp;p.abort(a),w(0,a);return this} always: function (){i.done.apply(i,arguments).fail.apply(i,arguments);return this} complete: function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&amp;&amp;e!==!0&amp;&amp;(k=a,o(e[0],e[1]))}return this} done: function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&amp;&amp;e!==!0&amp;&amp;(k=a,o(e[0],e[1]))}return this} error: function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&amp;&amp;e!==!0&amp;&amp;(k=a,o(e[0],e[1]))}return this} fail: function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&amp;&amp;e!==!0&amp;&amp;(k=a,o(e[0],e[1]))}return this} getAllResponseHeaders: function (){return s===2?n:null} getResponseHeader: function (a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c} isRejected: function (){return!!i} isResolved: function (){return!!i} overrideMimeType: function (a){s||(d.mimeType=a);return this} pipe: function (a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&amp;&amp;f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()} progress: function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&amp;&amp;e!==!0&amp;&amp;(k=a,o(e[0],e[1]))}return this} promise: function (a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a} readyState: 0 responseText: "" setRequestHeader: function (a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this} state: function (){return e} status: 0 statusCode: function (a){if(a){var b;if(s&lt;2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this} statusText: "error" success: function (){if(c){var a=c.length;n(arguments),j?l=c.length:e&amp;&amp;e!==!0&amp;&amp;(k=a,o(e[0],e[1]))}return this} then: function (a,b,c){i.done(a).fail(b).progress(c);return this} __proto__: Object</code></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload