Once added to Chrome, just toggle the switch where the switch turns blue and the button above turns green.Īfter this step, just run your application as you were trying to do earlier and it should run just fine. Surprisingly for my current application this option did not help.Īdd the Chrome addon from the following link -Īllow-Control-Allow-Origin: * - Chrome Web Store Start the Chrome browser from command prompt with a flag to ignore cross-site contentĮ.g ‘path to your chrome installation\chrome.exe -allow-file-access-from-files’ There are different ways to achieve the same. We need to tell the browser programmatically in http headers that content from different servers is not a problem and we are doing it on purpose. At the same time Internet Explorer ran the application without a problem. I got this error in Chrome while trying to run a very simple application. You might face this error when your application code is perfectly alright. This error message in Chrome Browser means that some parts of your application do not have the same origin which looks suspicious and to alert and block, malicious (cross-site) attempt to access productive applications or steal some data from them. When you chose to run the app allowing blocked content it runs. In Internet Explorer it warns you but lets you run the application if you accept the risk and chose to allow blocked content. Inspection in F12 developer tools reflects the following error -Īccess-Control-Allow-Origin' header is present on the requested resource. You will be able to get rid of No "'Access-Control-Allow-Origin' header is present on the requested resource." in Chrome browserĪn application with seemingly correct code does not run properly in the chrome browser. This article may be helpful or beginners to experts alike. If you are working with SAPUI5/OpenUI5, sooner or later you will come across "No 'Access-Control-Allow-Origin' header is present on the requested resource." This article explains when you get this error and how to resolve it the easiest way particularly for Chrome Browser.Īpplies to: Tested for a simple SAPUI5/OpenUI5 desktop App but applies to 7.31, 7.4 versions etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |