0

Is there a mechanism in React to filter/interceptor request. Eg. For specific URL, i want to do some flag check and depending on flag I want to do 404, 301 redirect. Else 200 OK normal page.

2
  • Make wrapper client on top of http client and make all of your calls using that wrapper. Then you can add whatever you want in that. Sep 3, 2018 at 11:48
  • Thanks Vipin. Are u referring API fetch? I want to do it for a normal page URL.
    – Aryan
    Sep 3, 2018 at 12:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.