How To Make Imgur Api Work On Localhost Using Php

Imgur image not showing on localhost If you ever tried working on imgur API with PHP and you have been getting "undefined error" and you don't know how to figure it out like me?

Strangely, imgur is restricting to access the image directly from localhost. However if you access your localhost using IP address, you are able to see the image.


1. http://localhost/site (not allowed)

2. http:// (allowed)

This is not only for this image, but also any imgur image.

For me it was which was working and localhost was not working. They block 1localhost origin for some reason and This isn't really a solution to your live-server issue however.

So if all you are interested in is figuring out how it looks and making adjustments I suggest just using preview on web server extension.

Welcome to Nairaland Script - Download from here

No comments. Be first to post a comment.

Reply to this article

Welcome, Guest: Join to reply login to reply!

♣ Post Statistic

1 guest(s) viewing this topic

Related Post

How To Accessibly Disable A Form Button When Submitting With Ajax Using Vanilla Js How To Install Windows 11 On Unsupported Pc How To Edit Ad Rates How To Increase Your Rankings Using 1 Simple Tool How To Make Imgur Api Work On Localhost Using Php How To Create A Forum With Codexpress Nairaland

♣ CodeXpress Statistic

Welcome, Guest: Join CodeXpress Login

17 Members, 135 topics and 9 posts
Date: Friday 01 July 2022 at 03:45 AM

Top 5 Contributors

People who started the most discussions on codexpress.

  1. 17
  2. 92
  3. 3
  4. 11
  5. 1


CodeXpress / General:
Politics, Business, Investment, Career, Autos, Counties, Properties, Agriculture, Health, Travel, Family, Culture, Religion, Food, Pets, Romance, Diaspora, Africa, International Forum, World List Directory, How To,
Programing, Webmasters, Computers, Phones, Art, Graphics & Video, Technology Market, CSS, Innovation, PHP 7x, Vanilla JS, Software Updates,

♣ Users Online: (1)

0 Members and 1 Guests online in last 5 minutes!


International Forum, Food, Autos, Family, World List Directory, Phones, Innovation, CSS, Art, Graphics & Video, Software Updates, Photography, Forum Games, Theatre/Comedy, Sports, Jokes Etc,

CodeXpress - Copyright © 2019 - 2022 Marshall Unduemi. All rights reserved. See How To Advertise.
Disclaimer: Every CodeXpress member is solely responsible for anything that he/she posts or uploads on CodeXpress.