about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMingwei Samuel <mingwes@amazon.com>2025-07-25 13:21:50 -0700
committerMingwei Samuel <mingwes@amazon.com>2025-08-01 14:42:17 -0700
commitf516d4c9e341847d8f452adef68fe99cfdcfccc0 (patch)
tree931f4fe5de66d4eeb2eeb903368d08ab9b35d07b /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent4b55fe199cfe9c710555a5af7f2a49491ad38254 (diff)
downloadrust-f516d4c9e341847d8f452adef68fe99cfdcfccc0.tar.gz
rust-f516d4c9e341847d8f452adef68fe99cfdcfccc0.zip
rustdoc font links only emit `crossorigin` when needed
The `crossorigin` attribute may cause issues when the href is not actuall across origins. Specifically, the tag causes the browser to send a preflight OPTIONS request to the href even if it is same-origin.
Some tempermental servers may reject all CORS preflect requests even if they're actually same-origin, which causes a CORS error and prevents the fonts from loading, even later on.

This commit fixes that problem by not emitting `crossorigin` if the url looks like a domain-relative url.

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions