Skip to content

Serve static contents under the `crossOriginIsolated` mode.

License

Notifications You must be signed in to change notification settings

braneproject/serve-isolated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serve-isolated

Serve static contents under the crossOriginIsolated mode.

See this post for more detail about crossOriginIsolated, COOP & COEP

Usage

The quickest way to get started is to just run npx serve-isolated in your project's directory.

If you prefer, you can also install the package globally using Yarn.

yarn global add serve-isolated

Once that's done, you can run this command inside your project's directory...

serve-isolated

...or specify which folder you want to serve:

serve-isolated folder_name

available options:

--host   Specify listening hostname
--port   Specify listening port
--https  Enable https/http2,
         with automatically generated cert using devcert
         (root permission may required)

License

MIT

About

Serve static contents under the `crossOriginIsolated` mode.

Resources

License

Stars

Watchers

Forks