locked
Cannot retrieve image which has http in its url. RRS feed

  • Question

  • User966207163 posted

    Hi, guys, I'm new to asp.net core. I want to show some images on my site but the images are over unsecured connection for example http://image.png . If I write this absolute link inside image tag asp.net make a request to HTTPS instead of HTTP thus returning 402 error. How can i solve this?

    Sunday, June 14, 2020 3:12 AM

Answers

  • User966207163 posted

    Yeah. It does not. I forgot to close the thread here it was because of l one package i was using for code minifiction. To minify the code it was actually removing http in the absolute url. Thank you

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 15, 2020 9:56 AM

All replies

  • User-474980206 posted

    Be sure the browser is configured to allow mixed content. 

    Sunday, June 14, 2020 4:39 PM
  • User711641945 posted

    Hi nareshbishtasus,

    If I write this absolute link inside image tag asp.net make a request to HTTPS instead of HTTP thus returning 402 error.

    Did you mean your application is request by https,but your image url is http://image.png?If so,I could not reproduce 402 error.Could you share a screenshot about your Network panel which is in your browser?

    Best Regards,

    Rena

    Monday, June 15, 2020 9:39 AM
  • User966207163 posted

    Yeah. It does not. I forgot to close the thread here it was because of l one package i was using for code minifiction. To minify the code it was actually removing http in the absolute url. Thank you

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 15, 2020 9:56 AM