Actually I am trying to connect an Angular app with my Maven-Jersey-webapp(implements Rest Services concept) and getting this error.
More Details: I am using Oracle10g XE Database Eclipse IDE for maven Project(http://localhost:8080/MavenProject) Angular CLI(http://localhost:4200/)
I want to retrieve data from database(Stored in students table) and then display that data in Angular App in a Table my jersey project returns the table data in JSON and XML format(Running Successfully)
retrieving student table data in JSON format using Maven-jersey-webapp implementing rest
You can fix this by checking if you are using
Just use http to fix it. After that, Add that in the header in the angular service you created like doing a code like this
Just check the string value you passed in your code. Sometimes your eye gets trick on these values. Like
http://localhost:4200 vs https://localhost:4200