Cors option?
See original GitHub issueHey, I use serve
every day so thanks for the continued maintenance 😃
The latest update seems to have removed the cors option from the cli, was that intentional?
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Cross-Origin Resource Sharing (CORS) - MDN Web Docs
Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, ...
Read more >CORS Tutorial: A Guide to Cross-Origin Resource Sharing
Cross-Origin Resource Sharing (CORS) is a protocol that enables scripts running on a browser client to interact with resources from a different ...
Read more >Express cors middleware
CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
Read more >CORS and the Access-Control-Allow-Origin response header
This response sets out the allowed methods ( PUT , POST and OPTIONS ) and permitted request headers ( Special-Request-Header ). In this...
Read more >Why is an OPTIONS request sent and can I disable it?
OPTIONS requests are what we call pre-flight requests in Cross-origin resource sharing (CORS) . They are necessary when you're making requests across different ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Gotcha, thanks.
I will say this makes the tool less convenient for me as I use it to quickly serve up a local folder with
npx serve <dir> --cors
. With the CLI option I don’t need to add any extra configuration specific toserve
for each project.Just my 2 cents though! I’m very likely in the minority of people who used the
--cors
option frequently.My workaround for now is to just use the older version as it works perfectly fine for my use case
npx serve@6.5.8 --cors <dir>
Cheers!
@jschr thanks for the work around! 👍 for adding the command line option back