I am using this code
// This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import api, { route } from "@forge/api"; const response = await api.asUser().requestJira(route`/rest/api/2/project/{projectIdOrKey}/role`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
but I am getting this error
Refused to connect to 'https://jira/rest/api/2/project/100/role' because it violates the following Content Security Policy directive: "connect-src 'self' https://api.atlassian.com/metal/ingest".
Hello, Good day. Please create this query in our developer community. https://community.developer.atlassian.com/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.