# Error on browsing some pages "CSRF verification failed "

**URL:** <https://discourse.datatex.co.za/t/error-on-browsing-some-pages-csrf-verification-failed/147>\
**Category:** Uncategorized\
**Created:** [August 1, 2022, 8:35am UTC](https://discourse.datatex.co.za/t/error-on-browsing-some-pages-csrf-verification-failed/147 "2022-08-01T08:35:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonvanHeerden](https://discourse.datatex.co.za/letter_avatar_proxy/v4/letter/l/51bf81/32.png) [@LeonvanHeerden](https://discourse.datatex.co.za/u/LeonvanHeerden)\
**Post date:** [August 1, 2022, 8:35am UTC](https://discourse.datatex.co.za/t/error-on-browsing-some-pages-csrf-verification-failed/147/1 "2022-08-01T08:35:20Z")

</div>

If you are using a tunnel to browse the site and you are using a different port that what the service actually runs on, this can happen.

Th site checks that the IP and port matches what was requested.

Example:  
The site runs on port 443 ( HTTPS ) and you have setup a tunnel to access the service locally on port 12345. You use your local browser to connect to [https://127.0.0.1:12345](https://127.0.0.1:12345) and the page loads.  
The once you try and access some services, the page fails to load with an Error 403:

> CSRF verification failed

The service is checking that the access was supposed to go to port 443, but sees port 12345.

**Solution**  
Change the tunnel to a Dynamic Socks proxy and use that in your browser  
or  
change the port locally to the same port that the service is actually running on. ( E.g. 443 from the example above. )
