# Bug OP-20790 - Redirect to SSO provider not working on chrome when logging in via the sidebar

Project: OpenProject
Status: confirmed
URL: https://community.openproject.org/work_packages/OP-20790

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Authentication |
| Target versions |  |
| Observed in versions | 17.9.1 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Setup SSO-Provider that has an additional redirect
    
2.  Add the redirect to the `Additional allowed login redirect URLs`
    
3.  Configure the provider as `Direct login SSO provider`
    
4.  Have a public project in OpenProject
    
5.  Visit [https://openproject.example.com/](https://openproject.example.com/) by using chrome
    
6.  Login in via the Login icon on the right:
    
7.  <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/927033/content">
    

### What is the buggy behavior?

*   You don&#x27;t get redirected correctly when using chrome
    
*   You get the following error in the Browser console:
    
    Sending form data to &#x27;[https://openproject.example.com/auth/myssoprovider](https://openproject.example.com/)&#x27; &nbsp;violates the following Content Security Policy directive: &quot;form-action &#x27;self&#x27; https://\*.chargebee.com https://openproject-docs.s3.eu-central-1.amazonaws.com&quot;. The request has been blocked.
    

### What is the expected behavior?

1.  The login should work
    
    <br>
    

### Workaround

<br>

Using [https://openproject.example.com/login](https://openproject.example.com/login) still works

<br>
