I'm traing to create an angular app
Well, when I call the API from Postman it work but when I try to call it using HTTP.put on a browser (firefox or chrome ) I always have this error
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:5001/api/users/set-main-photo/25. (Reason: Did not find method in CORS header ‘Access-Control-Allow-Methods’).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:5001/api/users/set-main-photo/25. (Reason: CORS request did not succeed).
I make some research and I addid this to my header using the Interceptor Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD Access-Control-Allow-Origin: *
still same issue
any help please?
Note : HTTP.GET and HTTP.POST works fine Thank you