How to fix Access-Control-Allow-Origin (CORS origin) in Tomcate
CORS On Tomcat During debugging spring source code via intellij(Editor) , sometime we get CORS issue in console . This is a very basic configure issue in Apache tomcat , during the execute you source code . How to fix Access-Control-Allow-Origin (CORS origin). By use of following changes , you have to changes in the web.xml(src\main\webapp\WEB-INF) file <filter> <filter-name>CorsFilter</filter-name> <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> <init-param> <param-name>cors.allowed.origins</param-name> <param-value>(http://localhost:8082 or * ( means any port value) </param-value> </init-param> <init-param> <param-name>cors.allowed.methods</param-name> <param-value>GET,POST,HEAD,OPTIONS,PUT</param-value> </init-param> <init-param> <param-name>co...