Search Posts

Category: cross-domain

No ‘Access-Control-Allow-Origin’ header is present on the requested resource with Spring Boot and Angular JS [duplicate]

This question already has an answer here: How to enable CORS in AngularJs 4 answers I have written and angular js program where I am doing a get Request and trying to fetch a resource from a spring Boot rest service. But I am getting this error : No ‘Access-Control-Allow-Origin’ header is present on the requested resource In Angular Js : ctrl.js (function(){ “use strict”; angular.module(“app”) .controller(“chatCtrl”,function($scope,$http){ $ = “ujjawal”; $scope.usermessages = []; $scope.botmessages = […]

AngularJS $http request issue in HTTP and HTTPS

I have a problem in my angularjs $http request. When I send request to the API it was blocked by the browser like: ERROR IN FIREFOX : Blocked loading mixed active content “” ERROR IN CHROME: Mixed Content: The page at ‘‘ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘‘. This request has been blocked; the content must be served over HTTPS. How can I fixed this problem? Any idea is accepted. […]