![]() ![]() I founded this following solution and add in my spring boot application of configuration class. The problem is when our front end developer try to login from the web-browser for the login he get this error in the front end side:Īccess to XMLHttpRequest at ' from origin ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Īt XMLHttpRequest.handleError (xhr.js:117:1) ![]() htaccess file located in appropriate folder: workaround to enable it on Firefox is not listed. Disabling security is fine for develop purposes, but it is rather inpossible to require it for every user of your application. CORS rules are enforced by the browser and there is not much you can do with it in the browser itself (therfore your Angular app). I read the Mozilla guide to same-origin policies: Cross-Origin Resource Sharing (CORS) but it just explains CORS and the related topics. It is done by responding to OPTIONS request with Access-Control-Allow-Origin header. I have following method for the login in the Controller. If the source is a server you have access to, then you can open up cross-domain access for a specific folder (and its sub-folders) with an. false This attempt has been posted several times here and is told on other sites too, but it doesnt have any effect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |