Questions tagged as 'cross-domain'

1
answer

Run Ajax by passing credential information to the Header

I need to make an ajax call by passing in the Header the following information: Content-Type: application / json Cookie: authToken = valueXPTO (This information above I got from Postman) IneedtodothesamethingexceptIsawAjax,andnowayamIgettingit....
asked by 17.11.2017 / 01:20
0
answers

Spring security set the Token in the Headers

I configured Cross to accept the request in AngularJS, but the answer comes without the token. How do I add the token to the response? Spring security: @Override protected void configure(HttpSecurity http) throws Exception { http.header...
asked by 15.08.2017 / 13:52
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

Ajax 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', 'true') ->header('Access-Control-All...
asked by 12.01.2016 / 22:04
0
answers

Problems with ajax / json and cross-origin redirect

I have an application, in flask + javascript, that needs to query a url (on a server I do not have access to), however I get the cross-origin redirect error    XMLHttpRequest can not load link . Redirect from ' link ' to ' 'has been blocke...
asked by 15.02.2017 / 17:16
1
answer

How do you disable cross origin constraints to run on localhost?

<!doctype html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Teste - LOTECE</title> </head> <body> <div class="resultado"></div> <script src="https://aj...
asked by 13.01.2017 / 17:15
0
answers

PHP 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,...
asked by 25.10.2016 / 19:13