Closed viveknuna closed 6 years ago
@viveknuna if you use your browser's F12 debug tools and the network trace option, do you see any additional details?
Also, if you request the URL manually in a browser window, does that work?
Hi. We're closing this issue as there's been no response and we have been unable to reproduce it. If you have more details and are encountering this issue please add a new reply and re-open the issue.
I have hosted my Asp.Net core 2.1 application on IIS. I'm uploading some images to the server. Now I need to download these images from some other application. So the image path would be something like http://localhost:21021/images/1.png.
I have tried the below code to download the image from other application, but it gives the below CORS error.
Error
No 'Access-Control-Allow-Origin' header is present on the requested resource
My Startup.cs
appsettings.json
I have tried the below code also to resolve CORS issue but its also not working.
I don't know what is wrong in my application?
I have two questions here
Problem summary
I need to download all the images from a folder from an Asp.Net Core application which is hosted on IIS