Home > Net >  CORS / CORB error in Eclipse on same domain (Extjs / java Spring Boot)
CORS / CORB error in Eclipse on same domain (Extjs / java Spring Boot)

Time:07-09

I'm facing a CORS problem in Eclipse and simply can't get it resolved.

I tried the correspondig tomcat approaches from this site: http://docs.motechproject.org/en/latest/deployment/CORS_Headers.html#tomcat-web-server-config but without success.

I'm using Java IDE for Web Developers and Google Chrome Version 103 on Windows Server 2022 and Windows 10 Professional. I'm developing with Spring Boot and Extjs 7 GPL

Here my config at the moment and attempt in Eclipse

Here the result in Chrome after attempting to send

As you can see in the images, the problem is not the domain (both localhost), but the different port: 1841 (sencha app watch) and 8080 Eclipse Tomcat.

But after linking the web.xml to Eclipse and preparing it as you could see, this should run - but seemingly it doesn't...

Therefore I bid you kindly for any hint in order to resolve this problem - there simply must be a way to achieve my goal in Eclipse.

CodePudding user response:

Ok invertedOwlCoding, I tried both approaches in web.xml: localhost with port and without port, but still throwing this error ...

Here the code of my store and web.xml

And here again the error in Chrome browser debugger

So, corresponding to the parts you can see it should function, right? If so, I have another config problem I must search for...

In any case thank you very much for your replies !

CodePudding user response:

usually that occurs when there is a misalignment in front and backend. Could you perhaps add code snippet of those? also, have you tried it in privacy mode? just to remove doubts for any cache

  • Related