cachet icon indicating copy to clipboard operation
cachet copied to clipboard

API: Allowed domains

Open jbrooksuk opened this issue 11 years ago • 2 comments

For security we could allow the API to only be accessed from certain domains. This could simply be a textarea which you write domains on a new line and restricts requests based on the Origin and Referer headers.

Leaving it empty would open the API to anyone (with authentication).

jbrooksuk avatar Dec 15 '14 07:12 jbrooksuk

Disallowed domains would also be a good idea aswell. So you can block based on the Origin/Referer.

ilikeprograms avatar Dec 15 '14 09:12 ilikeprograms

@ilikeprograms there doesn't seem to be a deny syntax like Access-Control-Allow-Origin, how do you propose blocking?

jbrooksuk avatar Dec 20 '14 18:12 jbrooksuk