- Notifications
You must be signed in to change notification settings - Fork1
Interact with Microlink API using an Edge Function.
License
microlinkhq/proxy
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Interact with Microlink API without exposing your credentials.
Interacting directly withMicrolink API from frontend side is one of the most common scenarios.
However, it could be a risk security scenario if you are exposing yourx-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.
Deploy this service, 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 usingmql, setup it asendpoint parameter:
constmql=require('@microlink/mql')mql('https://microlink.io',{endpoint:'https://edge-proxy.microlink.io'})
Required
Type:string
Your Microlink API key used toauthenticate your requests.
Type:string|string[]
The list of allowed domains authorized to consume your Microlink API credentials.
Note domains should be provided in theURL.origin format (e.g.,'https://example.com').
Type:string
Default:https://pro.microlink.io
The Microlink API endpoint used for sending the requests.
edge-proxy ©Microlink, released under theMIT License.
Authored and maintained byKiko Beats with help fromcontributors.
microlink.io · GitHubmicrolinkhq · Twitter@microlinkhq
About
Interact with Microlink API using an Edge Function.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

