[GH-ISSUE #339] Flags will only load locally #210

Closed
opened 2026-03-03 14:35:28 +03:00 by kerem · 2 comments
Owner

Originally created by @notcmoore on GitHub (Jan 26, 2017).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/339

When I open my html file directly from my computer, the flags appear. However, when I upload said file to my site's ftp directory and load the page via http://, the flags won't show. Selecting the flag's svg file from the web inspector produces the error "An error occurred trying to load the resource." I've checked in Safari, Firefox, and Chrome. Anyone know how I can fix this? I'm at a complete loss. I am loading flags via the tags.

Originally created by @notcmoore on GitHub (Jan 26, 2017). Original GitHub issue: https://github.com/lipis/flag-icons/issues/339 When I open my html file directly from my computer, the flags appear. However, when I upload said file to my site's ftp directory and load the page via http://, the flags won't show. Selecting the flag's svg file from the web inspector produces the error "An error occurred trying to load the resource." I've checked in Safari, Firefox, and Chrome. Anyone know how I can fix this? I'm at a complete loss. I am loading flags via the <span class="flag-icon flag-icon-us"></span> tags.
kerem closed this issue 2026-03-03 14:35:28 +03:00
Author
Owner

@lipis commented on GitHub (Jan 26, 2017):

dunno.. do you mind sharing a link or something because it works here: http://flag-icon-css.lip.is

<!-- gh-comment-id:275511838 --> @lipis commented on GitHub (Jan 26, 2017): dunno.. do you mind sharing a link or something because it works here: http://flag-icon-css.lip.is
Author
Owner

@tomlutzenberger commented on GitHub (Jan 26, 2017):

@notcmoore Maybe file reading permissions on the server?

<!-- gh-comment-id:275551135 --> @tomlutzenberger commented on GitHub (Jan 26, 2017): @notcmoore Maybe file reading permissions on the server?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#210
No description provided.