Questions tagged as 'cors'

1
answer

User Authentication in AngularJs with API Rest in Java / Jersey

I'm developing the user authentication module in my application and I'm having some trouble accessing the API, getting a 403 error. In the old way I was doing, when I sent the request to the service, it correctly returned the data I needed wi...
asked by 08.11.2015 / 14:58
2
answers

Enable CORS in api rails

Using this GEM to enable CORS my application. The code I have in my config/application.rb is as follows: config.middleware.insert_before 0, 'Rack::Cors' do allow do origins 'http://localhost:8080' resource '*',...
asked by 02.06.2015 / 15:44
1
answer

Cross-origin requests are being blocked

I need to consult some zip codes in viacep API ( link ), when I run get below: vm.buscarCEP = function(){ const cep = vm.empresaResponsavel.cep //RECEBE CEP DO CAMPO const apiViaCep = 'http://viacep.com.br/ws/${cep}/json/' $http....
asked by 04.05.2018 / 04:29
1
answer

CORS related problem [closed]

In recent days I had a problem with the contact form on my site, the error in question is CORS. Well, so far so good, is a problem that surely many of you must have passed. The problem in question is that until sometime ago it was working perfec...
asked by 12.10.2017 / 19:05
2
answers

Difficulty with AJAX and JSONP

I have a problem with the ajax return with jsonp, it returns json, but I can not work with it. Code: $.ajax({ method: "GET", url: "http://minasul.tecnologia.ws/previsao/index.php?tipo=TODAS", async: false, contentType: "...
asked by 13.08.2015 / 14:17
1
answer

Slim PHP Problem with CORS

I'm trying to make a request on the server, but I'm having a problem with configuring CORS , api was developed with the Slim Php framework and I'm using middleware #, I left the middleware settings as default by adding ignoreloadingbar...
asked by 24.07.2018 / 18:09
1
answer

CORS error when executing request using HttpClient in the Angular

I'm trying to perform an Http request using "HttpClient" from Angular 4, and I get the following error:    Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response. According to...
asked by 08.02.2018 / 05:11
1
answer

Problems in setting up CORS Spring Boot!

This is the error message you are giving; I'mhavingahardtimemakingmyFrontEndAPIhavepermissiontoaccessmyBack-EndAPIwhichisaSpringBootproject,I'msuremyproblemisnotmyFron-EndAPI,theproblemisintheconfigurationoftheCORSregardingaccesspermission.I...
asked by 11.03.2018 / 09:46
3
answers

GET via jQuery on a different server, problem with CORS

I'm trying to make a call GET/AJAX to a URL which is different from the one I'm calling, but I always get the message in the browser:    Failed to load link : In 'Access-Control-Allow-Origin' header is present on the requested...
asked by 07.11.2017 / 14:36
1
answer

How to ensure that the generated JSON does not return error to the Client?

I created a Web API that returns a JSON and has a problem similar to the JSONP: status code 200 OK and anyway returns $ .Ajax (... error: function () ...) . The client consumes the API with Nodes like this: refresh() { axios...
asked by 18.09.2018 / 14:40