Skip to content

Interact with Microlink API without exposing your credentials

License

Notifications You must be signed in to change notification settings

aredotna/proxy

This branch is 1 commit ahead of, 49 commits behind microlinkhq/server-proxy:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c55cd23 · Apr 26, 2021

History

96 Commits
Apr 26, 2021
Apr 26, 2021
Aug 2, 2019
Aug 2, 2019
Apr 26, 2021
Aug 2, 2019
Aug 2, 2019
Aug 2, 2019
Mar 22, 2021
Jan 2, 2020
Mar 22, 2021
Apr 26, 2021
Feb 8, 2021
Apr 26, 2021
Apr 26, 2021

Repository files navigation

microlink

Deploy with ZEIT Now Deploy to Heroku

Interact with Microlink API without exposing your creedentials.

Motivation

Interacting directly with Microlink API from frontend side is one of the most common scenarios.

However, it could be a risk security scenario if you are exposing your x-api-key, being possible that anyone can steal it and consume your API quota.

For preventing that, this tiny microservice allows you interact with Microlink API without compromising your credentials.

Usage

Deploy this microservice, setting up the necessaries environment variables.

After that, every time you need to interact with Microlink API, just call the microservice URL instead.

If you are using mql, setup it as endpoint parameter:

const mql = require('@microlink/mql')

mql('https://microlink.io', {
  endpoint: 'https://proxy.now.sh'
})

Environment Variables

DOMAINS

Required
Type: string|string[]

The list of allowed domains authorized to consume your Microlink API credentials.

API_KEY

Required
Type: string

Your Microlink API key used to authenticate your requests.

License

microlink © Microlink, Released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.

microlink.io · GitHub @MicrolinkHQ · Twitter @microlinkhq

About

Interact with Microlink API without exposing your credentials

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%