Add Support to configure API key

Issue #8 resolved
Jeanyhwh Desulme created an issue

We're currently running into an issue where the banner is no longer appearing. Looking at the JS console window a 401 error is appearing. It seems to be an authentication error and if we pass in API key than it should begin working again. I don't know if it was required before but this is something that I just noticed.

http://doers.statuspage.io/api/authentication/

XMLHttpRequest cannot load https://XXXXX.statuspage.io/api/v2/summary.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://exampe.com' is therefore not allowed access. The response had HTTP status code 401.

Comments (9)

  1. Eddie Webbinaro repo owner

    Can't support use of API KEYs because SP.io header doesnt allow pre-flight cross-origin requests.

    What page are you calling, and from what domain? (error says exampe.com) But nothing we use at work should need an API key.

  2. Jeanyhwh Desulme reporter

    It was coming from our forge.lmig.com URL. I just replaced the real values with dummy ones. Also it was from jira and bitbucket. Basically any tool where the plugin was installed.

  3. Jeanyhwh Desulme reporter

    I was reading the docs and it mentioned that in order to request data from the API it required a valid API key. So I assumed it was needed based on the 401 error.

  4. Eddie Webbinaro repo owner

    Tucker talked to support last week, this is a new requirement they added. I cut a 1.3 release to add settings for API key.

  5. Log in to comment