skip to Main Content

CSP Header and Cross domain Ajax call – Jquery ajax

my server (my.server.com) produces a HTML page that call another service (external.server.com) for load data. For the ajax call i'm using jquery. $.ajax({ url:"https://external.server.com/check", dataType: 'get', success:function(json){ // do stuff with json (in this case an array) $("userContainer").append(json); }, error:function(){…

VIEW QUESTION

Access-Control-Allow-Origin header Missing – Plesk

I have included this javascript on other domains: var id = "<?php echo check_input($_GET['token']); ?>"; var querystring = ""; var lockerurl = "https://www.example.com/contentlocker/getlocker.php?" + 'id=' + encodeURIComponent(id) + '&r=' + encodeURIComponent(referrer) + querystring; var iframecontents; var old_display; function optionstoquery(options) {…

VIEW QUESTION

Shopify API Cross Domain Ajax Request

I am using the below code to get the customer details from shopify. I have redirected my domain to the other domain from the shopify admin. function setEmailWithLoggedInUser(callback) { $.ajax({ url: 'https://new-website-shopify.myshopify.com/admin/customers/'+__st.cid+'.json', crossDomain: true, beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "Basic XXXXXXXXXXXX")…

VIEW QUESTION
Back To Top
Search