Most voted "cross-domain" questions
Cross-Domain refers to web applications that communicate outside your web domain/server. This can be in the form of network requests to other servers or data sharing with DOM components served from different compound domains on the same web page.
Learn more…29 questions
Sort by count of
-
27
votes3
answers35092
viewsAjax cross-Omain request with pure Javascript (no Apis)
I have two applications in different domains, and I need to make a request Ajax between them saw POST or GET so cross-Domain. What would be the safest way to implement this in Javascript, without…
-
21
votes4
answers7389
viewsHow to make Ajax requests, with Jquery, on different domains?
It is possible to request a POST type 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:…
-
8
votes3
answers1766
viewsAjax cross Domain
Hello a while ago I asked this question: Grab content from another page by javascript or jquery Fellow @Sneepsninja made the following algorithm that worked. $(document).ready(function(){…
-
8
votes2
answers1098
viewsAngular POST with custom header and CORS
I need to perform a POST request using angular (http.post) and I need to pass to my API (.NET) in my header the access credentials (I’m using basic Authentication). Authorization:Basic…
-
7
votes1
answer4784
viewsWhat does Cross-Domain mean?
Looking into it, I heard that Cross-Domain is an interaction between different domains. Even, I found a similar question in the SOPT itself, as link below. However, the concept itself was not clear…
-
6
votes2
answers244
viewsJquery iframe transport plugin works on IE10 cross Domain
I need to post xml using Federal Justice webservices, but I can only do it using IE10 in compatibility mode. I received the information that the jquery iframe transport plugin would overcome this…
-
6
votes1
answer395
viewsHow to view all JS code requested by an iframe?
I want to exhibit a iframe with an external page and then show in a textarea all JS code requested by iframe in question. I have two problems: the first is how to know all the requisitions that the…
-
5
votes2
answers1434
viewsProblem when performing XHR on the same domain (localhost)
Explanation: I have an application running on a client’s computer, it worked normally for some time, then something happened that the system could only be accessed from outside and locally no longer…
php javascript html cross-domain xmlhttprequestasked 10 years, 2 months ago Paulo Roberto Rosa 8,979 -
4
votes3
answers314
viewsCross-Domain Application Security Questions
I have a question about the security of cross-Domain applications... The following is in case I have a hybrid APP that will run on a smartphone and will make requests ajax cross-domain to an api (in…
-
3
votes1
answer8441
viewsNo 'Access-Control-Allow-Origin' header is present on the requested Resource
I am trying to do a biometric authentication on a remote machine using Xmlhttprequest. But it is returning the following message: Xmlhttprequest cannot load…
-
3
votes2
answers625
viewsRead an XML in another domain
is it possible to read an xml in another domain? ex: http://mfmradio.fr/winradio/prog10.xml?player201507291645 did the code: <script type="text/javascript"> var i; var timer,timeout2;…
-
3
votes1
answer2416
viewsFreight calculation with WS post office via javascript
I’m trying to calculate the mail freight via javascript, but when I do the test does not pull the data and returns me the error Xmlhttprequest cannot load…
-
2
votes1
answer464
viewsAjax between domains - how to do?
I need to do an Ajax for a webservice that is in another domain, because a browser security policy is not possible. You can do this via JSONP?
-
2
votes2
answers547
viewsPHP 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: http://api.dominio.com And I’m testing in another subdomain:…
-
2
votes1
answer2640
viewsRun Ajax by passing credential information in Header
I need to make an ajax call by passing in Header the following information: Content-Type:application/json Cookie:authToken=valueXPTO (This information above I got from Postman) I need to do the same…
-
1
votes1
answer496
viewsParsererror error when making an AJAX crossDomain request
I created this page to test a request cross Domain with AJAX: <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"> </script>…
-
1
votes1
answer1281
viewsHow to get the url of the parent page of an iframe without being in the same domain?
I searched postMessage, but only found examples of iframe resizing. I wonder if you have any way to get the URL of the main page where my iframe is inserted using this method or some other.…
-
1
votes0
answers42
viewsAccess-Control-Allow-Origin Xmlhttprequest Error
I am trying to do a biometric authentication on a remote machine, using XMLHttpRequest. But is returning the following message: XMLHttpRequest cannot load…
-
1
votes1
answer3371
viewsConfiguring CORS in Spring Security
I need to configure Spring Security to accept requests from external applications. I do not know how to do, I have a project in Spring Boot and Spring Security where only accept request from the…
-
1
votes0
answers211
viewsSpring security set Token on Headers
I configured Cross to accept the request in Angularjs, but the answer comes without the token. How to add token to Response? Spring security: @Override protected void configure(HttpSecurity http)…
spring spring-boot spring-security cross-domain microservicesasked 7 years, 3 months ago Aderbal 119 -
1
votes0
answers100
viewsfunction from onclick to external url iframe
How to receive the parameters of an onclick when the link is in an external url iframe? on the same server does exactly what I need, already working with the help of a Stack user (dvd). function…
-
0
votes0
answers35
viewsExpress.js check if request is made by iframe
How to check if request is made by iframe in "express js."? Example: WEBSITE TO: <iframe src="http://siteb.com/router"> site B: app.get('/router', (req, res, next) => // logica... }) The…
-
0
votes1
answer426
viewsAjax REST: PUT/DELETE does not work
I have 2 applications: 1) a Rest API on an XPTO server (Using Laravel 5.1), which has: ->header('Access-Control-Allow-Origin', '*.xpto.com.br') ->header('Access-Control-Allow-Credentials',…
-
0
votes1
answer304
viewsHow do you disable cross origin restrictions to run on localhost?
<!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Teste - LOTECE</title> </head> <body> <div…
-
0
votes0
answers514
viewsProblems with ajax/json and cross-origin redirect
I have an application, in flask + javascript, that needs to query a url (on a server I don’t have access to), however I get cross-origin redirect error Xmlhttprequest cannot load…
-
0
votes0
answers45
viewsPHP json for Ajax request
I have the following function in Class Read.php : public function selectCliente(){ try{ $stmt = $this->conn->prepare("SELECT CLIENTE.CODIGO_CLIENTE, CLIENTE.CGC, CLIENTE.RAZAO,…
-
0
votes0
answers39
viewsError: No Access-Control-Allow-Origin
[HELP] I am not being able to access my server’s JSON; I’m using this code to access, when I use the urlSrt, it returns me normally, (it is a site that receives a cep and returns a json with the…
-
0
votes1
answer249
viewsError while consuming Swagger api from the transparence portal
Using this code to consume the api is giving an error in cross-Omain $('#seguro').click(function(){ cpf = $('#cpf').val(); endapitrans =…
-
0
votes1
answer262
viewsConsume via Jquery-Ajax, an API on localhost:28033, from a page on localhost:7545
I’m trying to do one thing, but it’s not working. I have two projects . Net Core 2.0 , an API, and an MVC. I want to run ajax calls from the MVC project, to API project controllers. I open two…