question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey, 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:closed
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

32reactions
jschrcommented, May 30, 2018

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 to serve 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!

20reactions
johnwebbcolecommented, May 31, 2018

@jschr thanks for the work around! 👍 for adding the command line option back

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found