Request from web page to API responds with status 403

I followed the getting-started guide to create the helloworld basic app and integrated it successfully in my jira cloud instance.

Now I wanted to make an API request to get the issues for one of my boards. But the request failed with the 403 status.

I wanted to make the code as simple as possible, so I started with extending the helloworld.html with some javascript.

Here is the code:

<!DOCTYPE html>
<html lang="en">
    <head>
        <link rel="stylesheet" href="https://unpkg.com/@atlaskit/css-reset@2.0.0/dist/bundle.css" media="all">
        <script src="https://connect-cdn.atl-paas.net/all.js" async></script>
    </head>

    <body>
        <section id="content" class="ac-content">
            <h1>Hello World</h1>
            <button id="fetchButton">fetch</button>
        </section>
    </body>

    <script>
      function fetchData() {
        AP.request('/rest/agile/1.0/board/1/issue')
        .then(data => {
          console.log('response data', data);
        })
        .catch(e => console.error(e.err));
      }
      document.getElementById('fetchButton').onclick = fetchData;
    </script>
</html>

The browser log after doing the request above :

I cant show it here as this forum says “New users can only put 2 links in a message”.

Hi @dag.rende ,

According to these docs:
https://docs.atlassian.com/jira-software/REST/7.0.4/#agile/1.0/board-getIssuesForBoard
a 403 is returned when the user doesn’t have a valid license, or permission to access Jira Software-specific features.

Can you please check that your instance still has a valid license? If so, go to Jira Settings > Products > Product Access, and note which groups are listed under Jira Software. Make sure the currently logged in user is in one of those groups.

Hi @dag.rende, this tutorial might help you setting the authentication:
https://developer.atlassian.com/cloud/jira/platform/project-activity/