Questions tagged as 'cors'

2
answers

What is the meaning of CORS?

I always see the CORS word related to an error occurring when trying to make a XmlHttpRequest request for a given page, which does not have the same domain as the source. Example:    XMLHttpRequest can not load link . Response to...
asked by 04.08.2016 / 18:14
2
answers

CORS - No Access-Control-Allow-Origin header is present on the requested resource

Good evening, I'm trying to make an access from my local machine to a server and I'm getting this response:    No Access-Control-Allow-Origin header is present on the requested   resource. Origin ' link ' is therefore not allowed access....
asked by 11.09.2015 / 03:09
0
answers

"Uncaught SyntaxError: Unexpected token:" and "Access-Control-Allow-Origin"

Personally I'm trying to do a MailChimp integration, but I'm having problems with this error: 1 - Access-Control-Allow-Origin 2 - Uncaught SyntaxError: Unexpected token: I can not find the problem. Can you help me? For the "Access-Contr...
asked by 11.09.2017 / 21:02
1
answer

HTTP Access Control (CORS) for multiple domains

How to release HTTP access control (CORS) of images using XMLHttpRequest for all domains below in .htaccess and not using global permission with "*": Access-Control-Allow-Origin: http://www.osite.com.br, https://osite.com.br, http://osite.com....
asked by 23.05.2017 / 16:29
2
answers

CORS - No Access-Control-Allow-Origin header is present on the requested resource

Good evening, I'm trying to make an access from my local machine to a server and I'm getting this response:    No Access-Control-Allow-Origin header is present on the requested   resource. Origin ' link ' is therefore not allowed access....
asked by 11.09.2015 / 03:09
0
answers

Enabling CORS in the Angular

I'm trying to enable CORS in Angular in 2 scenarios. 1 - To test the application with the Chrome Debug with local file (file: //). This I was able to give a bypass with the command line option --allow-file-access-from-files 2 - For nor...
asked by 12.03.2017 / 04:22
0
answers

PHP Access-Control-Allow-Origin - CORS - Localhost

I'm trying to access a localhost application by another application that is also local, but on another IP and port and I can not at all. I've tried it all the way and the error mesangem always appears:    XMLHttpRequest can not load link . I...
asked by 29.12.2016 / 12:08
0
answers

Problems with CORS in application using API with Slim framework and angularjs

Good afternoon friends I'm having trouble solving a problem Requisição cross-origin bloqueada: A política de mesma origem (Same Origin Policy) impede a leitura do recurso remoto em http://api.dominio.com.br/exemplo. (Motivo: o cabeçalho...
asked by 07.07.2016 / 20:26
1
answer

Error making REST call with AngularJS

I'm using $ http from angular to make REST calls on my server, however I'm having a problem: In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. I have tried several...
asked by 23.02.2016 / 13:17
0
answers

Cors Api Google

I have the following request in the Google API using $ http AngularJS: $http.get('http://maps.googleapis.com/maps/api/distancematrix/json?origins=Porto Alegre&destinations=Sao Paulo&mode=driving&language=pt-BR&sensor=false');...
asked by 14.05.2015 / 22:54