Questions tagged as 'cross-domain'

1
answer

Freight calculation with WS post via javascript

I'm trying to make the freight calculation of the post via javascript, but when I do the test it does not pull the data and it returns the error to me    XMLHttpRequest can not load link ... & nVlDiametro = 0 & sCdMaoPropria = s & nVlVa...
asked by 28.07.2017 / 20:00
2
answers

PHP Works Local (XAMPP - PHP 5.5.33) but does not work on Server (PHP 5.5.31)

I'm making an API, and locally it's perfect. The problem is when I test it on the server. I created it in a subdomain, example: link And I'm testing on another subdomain: link Locally the addresses look like this: API: link Test:...
asked by 14.03.2016 / 20:46
1
answer

Ajax between domains - how to do? [duplicate]

I need to make an Ajax for a webservice that is in another domain, because a browser security policy is not possible. Is it possible to do this via JSONP?     
asked by 27.05.2014 / 23:07
4
answers

How to make Ajax requests, with Jquery, in different domains?

Is it possible to perform a POST-type request to a url that is not part of the domain of our application? $.ajax({ type: "POST", url: "http://www.dominioexterno.com.br/acao/", data: { var1: $('#input1').val(), var2:...
asked by 09.04.2014 / 15:09
1
answer

Consume via JQuery-Ajax, an API at localhost: 28033, from a page at localhost: 7545

I'm trying to do something, but it's not working. I have two .Net Core 2.0 projects, an API, and an MVC. I want to run ajax calls from the MVC project, to the Project Controllers API. I open two visual studios, and I run two projects: R...
asked by 07.07.2018 / 03:46
1
answer

Setting up CORS in Spring Security

I need to configure Spring Security to accept requests from external applications. I do not know how to do it, I have a project in Spring Boot and Spring Security where I only accept request from the same source. Must accept AJAX request using a...
asked by 11.08.2017 / 20:01
1
answer

How to get the url from the parent page of an iframe without being in the same domain?

I researched postMessage, but I only found examples of iframe resizing. I would like to know if there is any way to get the URL of the main page where my iframe is inserted using this or some other method.     
asked by 05.02.2015 / 14:07
1
answer

parsererror error while executing a crossDomain AJAX request

I've created this page to test a cross domain request with AJAX : <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script></head><body><scripttype="...
asked by 16.09.2014 / 14:15
0
answers

function from onclick in external url iframe

How to get the parameters of an onclick being the link in an external url iframe? on the same server does exactly what I need, already working with the help of a Stack (dvd) user. function looks like this: function funcao1(dom,se...
asked by 21.04.2018 / 16:25
0
answers

Express.js check if requisition is made by iframe

How to check if the request is made by iframe in "express.js" ? Example: site A: <iframe src="http://siteb.com/router"> site B: app.get('/router', (req, res, next) => // logica... }) The question is not t...
asked by 06.12.2017 / 20:59