You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix POST requests with `sec-fetch-dest: document` incorrectly triggering handshake redirects, resulting in 405 errors from FAPI. Non-GET requests (e.g. native form submissions) are now excluded from handshake and multi-domain sync eligibility.
// Handshake involves a redirect to FAPI which only accepts GET requests.
111
+
// Non-GET requests (e.g. POST form submissions) also set sec-fetch-dest: document,
112
+
// but redirecting them would result in a 405 Method Not Allowed from FAPI.
113
+
if(method!=='GET'){
114
+
returnfalse;
115
+
}
109
116
110
117
// NOTE: we could also check sec-fetch-mode === navigate here, but according to the spec, sec-fetch-dest: document should indicate that the request is the data of a user navigation.
111
118
// Also, we check for 'iframe' because it's the value set when a doc request is made by an iframe.
0 commit comments