This script will run a simple CORS server for Fortnox API: https://developer.fortnox.se/documentation/ It will also refresh the API token every 30 minutes and will use it automatically allowing us access to Fortnox API. We do not need to provide Fortnox API token. There should be a token file with client ID & secret with same …