LoginSignup
0
0

More than 1 year has passed since last update.

heroku Mixed Content: The page at 'https://appname.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://appname.herokuapp.com/api/photos?page=1'. This request has been blocked

Posted at

herokuにdeployしてアプリを開いてみるとconsoleにて以下のエラーが発生し、画面が正しく表示されない

Mixed Content: The page at 'https://appname.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://appname.herokuapp.com/api/photos/?page=1'. This request has been blocked

以下のURLがおかしいみたい

http://appname.herokuapp.com/api/photos/?page=1

クエリ前の「/」を省く

http://appname.herokuapp.com/api/photos?page=1

herokuに再度deployしてみるとエラー解消!!!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0