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
It would be useful to be able to filter not only by URL, but also by HTTP request method.
My specific use case is simulating intermittent error responses which succeed a CORS pre-flight check (OPTIONS method), but are missing CORS headers on the actual POST or GET error response. For now I've simply added a
if(`${e.method}`.toUpperCase()==="OPTIONS"){// keep CORS pre-flight responses intactlog("leaving cors preflight intact")return{responseHeaders: e.responseHeaders};}
to function rewriteResponseHeader(e) locally, and loaded the add-on via about:debugging, which works just fine for this specific case.
The text was updated successfully, but these errors were encountered:
It would be useful to be able to filter not only by URL, but also by HTTP request method.
My specific use case is simulating intermittent error responses which succeed a CORS pre-flight check (
OPTIONS
method), but are missing CORS headers on the actualPOST
orGET
error response. For now I've simply added ato
function rewriteResponseHeader(e)
locally, and loaded the add-on viaabout:debugging
, which works just fine for this specific case.The text was updated successfully, but these errors were encountered: