Hacker Newsnew | past | comments | ask | show | jobs | submit | makepanic's commentslogin

You can press P to toggle the edge point visibility.


How on phone?


If imported, using a bundler, one can also partially import features and install them when needed:

https://apache.github.io/echarts-handbook/en/basics/import/#...


the web port: https://isle.pizza/


> Next.js uses an internal header x-middleware-subrequest to prevent recursive requests from triggering infinite loops. The security report showed it was possible to skip running Middleware, which could allow requests to skip critical checks—such as authorization cookie validation—before reaching routes.


Not a web dev, so struggling a bit to understand this.

Are they saying they had a special flag that allowed requests to bypass auth, intended to be used by calls generated internally?

And someone figured out you could just send that on the first request and skip auth entirely?


If I’m reading the code right, it support their hybrid model where your code can run in three places: the user’s browser, Vercel’s edge, and an actual server. It looks like the idea was for when code in the edge context to be able to call the server faster but it was not protected to keep anyone else from calling it directly.

If I he for that right, this is a security review failure since people perennially try that optimization and have it end poorly for reasons like this. It’s safer, and almost always less work, to treat all calls equally and optimize if needed rather than having to support an “internal” call type over the same interface.


As I understand it, the middleware runs before a request hits a page or API route.. so to avoid infinite loops from internal subrequests (URL rewrites, etc), Next.js tags them with the x-middleware-subrequest header. This tells the runtime to skip middleware for those requests and proceed directly to the target. Unfortunately this also works externally.


Didn't Musk join them ~2 yrs after it was incorporated and didn't start the company?


Sure, you can join something like that, too. That's not the important part. The important part is to get a sustainable business out of it. Just 5 years ago nobody believed this was doable.


Well, clearly the _actual_ founders of Tesla did...


5 years ago they weren’t there anymore. And Musk famously slept in the office and nearly went bankrupt and insane trying to ramp up production of model 3.


When Musk joined the company was barely more than an idea and he joined 7 months after it was incorporated.


lol Tesla was nothing before he joined.


There's also the minecraft thread: https://forums.tigsource.com/index.php?topic=6273.0

Sadly many linked images aren't available anymore and the oldest archive is pretty recent from 2013 https://web.archive.org/web/20130517160444/https://forums.ti...


Codesandbox is embedded for the code samples. If you not have cache disabled it will fetch from memory cache after the initial load and unload.


It's working fine once it's archived tho, see e.g.

https://web.archive.org/web/20240114085417/https://posthog.c...


My bad, it wasn't visible until I disabled uBlock, requests seem to be caught by the "uBlock filters – Privacy" list. Does the IA actually run the JS and archive the fetched JSON on its own, or does it depend on someone visiting the archive page with their browser to trigger archival of this JSON data?


Nice, reminds me of https://yeoman.io/ which was popular couple years ago


(last commit from Dec 11, 2022)


Yeah, this isn't new. I've been advocating for this since 2018[1], and the PR in question was submitted in November 2022.

The PR isn't dead though. There's some additional discussion[2] on its current state in the issue I linked above. Basically, it needs more people to test the implementation against different sites in the wild.

Hopefully the increasing popularity of passkeys will provide the necessary level of motivation and support to get this over the finish line.

[1]: https://github.com/keepassxreboot/keepassxc/issues/1870

[2]: https://github.com/keepassxreboot/keepassxc/issues/1870#issu...


Eh no? The repo has been committed to 7 hours ago.

Of course the pull request is pending review but that's not too exceptional.


The repo was committed to, yes, but not the linked PR. The linked PR hasn't been updated since December of last year.


Yes I'm talking about the PR which sadly didn't really receive any recent review activity


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: