# How can I configure NGINX to fix the "No 'Authorization: Basic' header found" error

**URL:** <https://forum.hhf.technology/t/how-can-i-configure-nginx-to-fix-the-no-authorization-basic-header-found-error/257>\
**Category:** NGINX\
**Tags:** nginx, ios, nextcloud\
**Created:** [October 18, 2024, 5:27pm UTC](https://forum.hhf.technology/t/how-can-i-configure-nginx-to-fix-the-no-authorization-basic-header-found-error/257 "2024-10-18T17:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhf.technoloy](https://forum.hhf.technology/user_avatar/forum.hhf.technology/hhf.technoloy/32/68_2.png) [@hhf.technoloy](https://forum.hhf.technology/u/hhf.technoloy)\
**Post date:** [October 18, 2024, 5:27pm UTC](https://forum.hhf.technology/t/how-can-i-configure-nginx-to-fix-the-no-authorization-basic-header-found-error/257/1 "2024-10-18T17:27:06Z")

</div>

To resolve the “No ‘Authorization: Basic’ header found” error when using NGINX with Nextcloud, follow these configuration steps:

## NGINX Configuration

1. **Edit your NGINX configuration file** (usually located at `/etc/nginx/sites-available/your_site.conf` or similar).

2. **Add the following directives** within the `location` block that handles your Nextcloud requests:

3. **Ensure that you have the following headers set** to pass the authorization information correctly:

4. **Add well-known redirects** for CardDAV and CalDAV:

5. **Test your configuration** to ensure there are no syntax errors:

6. **Reload NGINX** to apply the changes:

## Additional Considerations

- If you are using Docker or a specific setup like Nginx Proxy Manager, ensure that any specific settings related to headers are also configured accordingly, such as `client_max_body_size` and `proxy_request_buffering`.

- Some users have reported success by simply adding `proxy_hide_header Upgrade;` to their configuration, which can help with issues related to header stripping that might cause authentication problems.

By following these steps, you should be able to fix the authorization header issue and successfully log into your Nextcloud instance using the iOS app.
