mirror of
https://github.com/jakejarvis/simpip.git
synced 2025-06-27 17:25:41 -04:00
remove unnecessary HTTP headers
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
# 🌎 [simpip](https://simpip.com/)
|
||||
# [🌎 simpip](https://simpip.com/)
|
||||
|
||||
**⚡ Now powered purely by [Cloudflare Workers](https://www.cloudflare.com/products/cloudflare-workers/), making it _blazing_ fast from anywhere in the world — and even more simple!** [Try this code on the playground.](https://cloudflareworkers.com/#6b0835ee482cc019b521cd68dd35c1c2:https://tutorial.cloudflareworkers.com)
|
||||
**⚡ Now powered purely by [Cloudflare Workers](https://www.cloudflare.com/products/cloudflare-workers/), making it _blazing_ fast from anywhere in the world — and even simpler!** [Try this code on the playground.](https://cloudflareworkers.com/#6b0835ee482cc019b521cd68dd35c1c2:https://tutorial.cloudflareworkers.com)
|
||||
|
||||

|
||||
[](https://github.com/jakejarvis/simpip/actions?query=workflow%3A%22Deploy+Cloudflare+Worker%22) [](https://securityheaders.com/?q=https%3A%2F%2Fsimpip.com%2F)
|
||||
|
||||
A very, *very* "simple" and lightning-fast web server that returns the requester's IP address in plaintext...and **literally nothing else**. Perfect for CLI usage via `curl`, `wget`, `httpie`, etc. or for automated tasks like dynamic DNS updates.
|
||||
|
||||
|
5
index.js
5
index.js
@ -7,12 +7,11 @@ async function handle(request) {
|
||||
let customHeaders = {
|
||||
"Content-Type": "text/plain; charset=utf-8",
|
||||
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
|
||||
"Pragma": "no-cache",
|
||||
"Expires": "Thu, 01 Jan 1970 00:00:01 GMT",
|
||||
"Content-Security-Policy": "default-src 'none';",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "GET, HEAD, OPTIONS",
|
||||
"Referrer-Policy": "no-referrer",
|
||||
"X-Content-Type-Options": "nosniff",
|
||||
"X-Frame-Options": "DENY",
|
||||
"X-Did-You-Know": "You can use \"curl -4 simpip.com\" or \"curl -6 simpip.com\" to get either address!",
|
||||
"X-Source-Code": "https://github.com/jakejarvis/simpip"
|
||||
}
|
||||
|
Reference in New Issue
Block a user