about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-05 03:51:32 +0200
committerGitHub <noreply@github.com>2025-08-05 03:51:32 +0200
commit2e97165e923103866237dacde44fd793616eaa3f (patch)
tree6489218338d6e0b84962cb0a64a1fa2c0b1acd16 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent0060d5a2a8a86a31f6299311fe64b1d755a91c4f (diff)
parentf516d4c9e341847d8f452adef68fe99cfdcfccc0 (diff)
downloadrust-2e97165e923103866237dacde44fd793616eaa3f.tar.gz
rust-2e97165e923103866237dacde44fd793616eaa3f.zip
Rollup merge of #144467 - hydro-project:users/mingwes/rustdoc-fix-cors, r=GuillaumeGomez
rustdoc template font links only emit `crossorigin` when needed

The `crossorigin` attribute may cause issues when the href is not actually cross-origin. Specifically, the tag causes the browser to send a preflight OPTIONS request to the server even if it is same-origin. Some temperamental servers may reject all CORS preflight 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 appears to be relative to the same origin.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions