Skip to content
代码片段 群组 项目
提交 06ebf837 编辑于 作者: Ashraf Khamis's avatar Ashraf Khamis
浏览文件

Merge branch 'docs/fix-troubleshooting-for-cors' into 'master'

Fix troubleshooting for CORS

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/146264



Merged-by: default avatarAshraf Khamis <akhamis@gitlab.com>
Co-authored-by: default avatarAnton Smith <asmith@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -213,25 +213,41 @@ For the second log, you might have one of the following scenarios:
- `json.exception.class` and `json.exception.message` are present.
- `json.exception.class` and `json.exception.message` contain whether an issue occurred while contacting the self-managed instance.
## Error when connecting the app
## `Failed to link group`
When you connect the GitLab for Jira Cloud app, you might get one of these errors:
When you link a group, you might get the following error:
```plaintext
Failed to load Jira Connect Application ID. Please try again.
Failed to link group. Please try again.
```
A `403 Forbidden` is returned if the user information cannot be fetched from Jira because of insufficient permissions.
To resolve this issue, ensure the Jira user that installs and configures the app
meets certain [requirements](jira_cloud_app.md#jira-user-requirements).
## `Failed to load Jira Connect Application ID`
When you sign in to the GitLab for Jira Cloud app after you point the app
to your self-managed instance, you might get the following error:
```plaintext
Failed to link group. Please try again.
Failed to load Jira Connect Application ID. Please try again.
```
When you check the browser console, you might see the following message:
When you check the browser console, you might also see the following message:
```plaintext
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://gitlab.example.com/-/jira_connect/oauth_application_id. (Reason: CORS header 'Access-Control-Allow-Origin' missing). Status code: 403.
```
A `403 Forbidden` is returned if the user information cannot be fetched from Jira because of insufficient permissions.
To resolve this issue:
1. Ensure `/-/jira_connect/oauth_application_id` is publicly accessible and returns a JSON response:
```shell
curl --include "https://gitlab.example.com/-/jira_connect/oauth_application_id"
```
To resolve this issue, ensure the Jira user that installs and configures the app meets certain
[requirements](jira_cloud_app.md#jira-user-requirements).
1. If you [installed the app from the official Atlassian Marketplace listing](jira_cloud_app.md#connect-the-gitlab-for-jira-cloud-app),
ensure [**Jira Connect Proxy URL**](jira_cloud_app.md#set-up-your-instance) is set to `https://gitlab.com` without leading slashes.
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册