Andrew Brown
unread,Feb 6, 2024, 9:37:03 PM2/6/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blink-network-dev, Adam Rice, blink-network-dev, Andrew Brown
Just put up a rough CL - apologies for disappearing for three weeks; I got busy, and then my CORS preflights were being cached, so I thought the changes had randomly stopped working.
https://chromium-review.googlesource.com/c/chromium/src/+/5273743It's *very* rough, fair warning. Hopefully it's enough that I can get guidance on my lingering questions:
When I place a header onto cors_exempt_headers in third_party/blink/renderer/platform/loader/fetch/url_loader/request_conversion.cc this triggers a secondary check outside blink in services/network/cors/cors_url_loader_factory.cc. I'm unsure how other headers pass this check (e.g. X-Requested-With), as the only headers on the list were Google-specific ones. I've cobbled in a quick-and-dirty override so that I could test the rest of the changes, but if you could point me towards "doing it properly" that would be much appreciated.
Secondarily, the tests are still behaving strangely (i.e. failing). Is it possible that this change actually needs web tests to be updated? It seems possible that the testing web-server that the requests are going to doesn't realise it has to respond with an OPTIONS request for User-Agent now. That assumption still doesn't exactly line up with what I'm seeing, though (I would expect an error response, not just an empty user-agent), so again - any guidance would be massively appreciated.
I'm still flitting in and out of activity on this, so no rush on a review or anything :) Cheers for helping me out.