Skip to main content
Deno 2 is finally here 🎉️
Learn more
->
Dismiss
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Modules
Standard Library
JSR
Node.js & npm
Current path
deno.land/x
Community
Discord
GitHub
X
YouTube
Mastodon
Blog
Search…
⌘K
Module
x
/
xserver
/
src
/
cors.ts
X-Server a Deno server module with middleware
xeaone/server
Version
5.4.1
5.4.0
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.2.8
5.2.7
5.2.6
5.2.4
5.2.3
5.2.2
5.2.1
5.2.0
5.1.0
5.0.0
4.3.0
4.2.0
4.1.0
4.0.0
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
2.7.0
2.6.0
2.5.0
2.4.1
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
1.3.1
1.3.0
1.2.0
1.1.0
0.2.3
1.0.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.3
0.0.2
v0.0.1
v1-beta
Go to Latest
Menu
mod.ts
(default module)
N
handle
N
Handle
N
plugin
N
Plugin
c
context
c
Context
c
cors
c
Cors
c
file
c
File
c
handler
c
Handler
c
normalize
c
Normalize
c
payload
c
Payload
c
router
c
Router
c
session
c
Session
c
socket
c
Socket
v
default
v
mime
v
Mime
f
server
f
Server
context.ts
c
default
cors.ts
c
default
deps.ts
N
base64url
v
extname
v
join
v
readableStreamFromReader
v
STATUS_TEXT
f
serve
E
Status
file.ts
c
default
handle.ts
T
default
handler.ts
c
default
mime.ts
v
default
normalize.ts
c
default
payload.ts
c
default
plugin.ts
c
default
router.ts
c
default
session.ts
c
default
socket.ts
c
default
type.ts
f
default
import
*
as
xserver
from
"https://deno.land/x/xserver@1.3.1/src/cors.ts"
;
Classes
c
default