Skip to content

Commit f25f35d

Browse files
committed
Ensure Chrome on MacOS in Desktop mode not blocked
Apparently Chrome on MacOS pretends to be Safari 11 when Desktop mode is enabled: https://github.com/chromium/chromium/blob/main/docs/ios/user_agent.md
1 parent 99ab0b2 commit f25f35d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nginx.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ http {
3333
default 0;
3434
# Consider IE11 and older unsupported:
3535
"~Trident/" 1;
36-
# Consider Safari <= 14 as unsupported:
36+
# Allow Chrome pretending to be Safari:
37+
"~CriOS/" 0;
38+
# But consider Safari <= 14 as unsupported:
3739
"~Mac OS.*AppleWebKit.*Version/[0-9]\..*Safari" 1;
3840
"~Mac OS.*AppleWebKit.*Version/1[0123]\..*Safari" 1;
3941
}

0 commit comments

Comments
 (0)