I've a Angular6 project and with Chrome, Firefox, Safari and Edge this problem not exist.
But using Internet Explorer in console I've this situation
detailed error is:
Pratically fail the OPTIONS request (before the GET). But, If I remove from the search (in the Angular Service) the search Params "id, pageSize and sort" the request work. Even If I leave just one parameter (example id) works. But with all the parameters, don't.
Searching online give no help to me. Seems that I.E. has a problem with the lenght of the URL on the OPTIONS request, but I don't know how fix this issue.
My JAVA backend, in the Spring configuration, has the allowed to all methods GET, PUT, DELETE, OPTIONS, POST (on others browser this problem don't exist).
I think it's due to CORS policy but why only with IE this problem?
Ho can I customize the request GET (if identifing I.E as browser) to bypass this problem or resolve definitively?
Some people says that I can add some directives in the header of all GET request with an interceptor, but how? And especially, what I've to add to header to fix this problem?