jenkinsci / jenkinsci/credentials-plugin
[JENKINS-50160] Can't add credentials through https
- Dominant language
- Java
- Stars
- 134
- Forks
- 258
- Avg merge
- 48m
- Merged PRs (30d)
- 1
Description
When I try to add credentials for example login/password for docker registry, nothing happens and I get following error in console (domain name changed to example.com):
Mixed Content: The page at 'https://example.com/job/dfo-pm-staging_backend_develop/configure' was loaded over HTTPS, but requested an insecure form action 'http://example.com/descriptor/com.cloudbees.plugins.credentials.Cred...ials.SystemCredentialsProvider$ProviderImpl/context/jenkins/addCredentials'. This request has been blocked; the content must be served over HTTPS.
I can change form url to https instead of http using developer tools and then it submits correctly. How do I fix this issue?
---
Originally reported by refruity, imported from: Can't add credentials through https
Raw content of original issue
When I try to add credentials for example login/password for docker registry, nothing happens and I get following error in console (domain name changed to example.com):
Mixed Content: The page at 'https://example.com/job/dfo-pm-staging_backend_develop/configure' was loaded over HTTPS, but requested an insecure form action 'http://example.com/descriptor/com.cloudbees.plugins.credentials.Cred...ials.SystemCredentialsProvider$ProviderImpl/context/jenkins/addCredentials'. This request has been blocked; the content must be served over HTTPS.
I can change form url to https instead of http using developer tools and then it submits correctly. How do I fix this issue?
environment
```
Jenkins version 2.89.3
Credentials Plugin version 2.1.16
```
Contributor guide
Assessment
This issue has not been assessed yet.