Skip to content

Commit

Permalink
Merge pull request #2 from joel0/v2
Browse files Browse the repository at this point in the history
Bugfix: access control header on JSON API
  • Loading branch information
joel0 authored Dec 3, 2017
2 parents dd0bc90 + d805cd1 commit 2b88812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions HostnamePlus/Controllers/OtherIpController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public class OtherIpController : Controller
[HttpGet]
public IndexModel Get()
{
String origin = String.Format("{0} {1}.{0} {2}.{0}", Program.BASE_URL, "ipv4", "ipv6");
Response.Headers.Add("Access-Control-Allow-Origin", origin);
Response.Headers.Add("Access-Control-Allow-Origin", "*");
return new IndexModel(Request);
}
}
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# HostnamePlus
A website for displaying hostname, IP, and useragent. If connecting through IPv6, it will attempt to also display IPv4 information.
A website for displaying reverse DNS hostname, IP, and user agent. Through
Javascript, the page will load both the IPv4 and IPv6 hostnames and IPs.

Currently hosted at http://hostname.jmay.us
Currently hosted at https://hostname.jmay.us

0 comments on commit 2b88812

Please sign in to comment.