storj/satellite/console/consoleweb/consoleapi
Moby von Briesen 7530a3a83d satellite/console: add CORS middleware to satellite UI and API
Add some basic handling to set cross-origin resource sharing headers for
the satellite UI app handler as well as API endpoints used by the
satellite UI.

This change also removes some no-longer-necessary CORS functionality on
the account registration endpoint. Previously, these CORS headers were
used to enable account registration cross-origin from www.storj.io.
However, we have since removed the ability to sign up via www.storj.io.

With these changes, browsers will prevent any requests to the affected
endpoints, unless the browser is making the request from the same host
as the satellite.

see https://github.com/storj/storj-private/issues/242

Change-Id: Ifd98be4a142a2e61e26392d97242d911e051fe8a
2023-06-23 17:46:44 +00:00
..
gen private/apigen: Support basic doc generation 2023-06-13 08:48:06 +00:00
utils satellite/nodeevents: validate emails before notifying 2022-12-06 09:59:45 -05:00
abtesting_test.go console/abTesting: add support for AB testing 2022-10-27 10:57:12 +00:00
abtesting.go private/web,satellite/console/.../consoleapi: serve rate limiting errors as JSON 2022-11-23 17:56:07 +00:00
analytics.go satellite/{analytics, web}: segment ui error tracking implemented 2022-12-13 18:11:53 +00:00
api.gen.go private/apigen: Change order of operations in api generation 2023-01-11 16:54:53 +00:00
apidocs.gen.md private/apigen: Support basic doc generation 2023-06-13 08:48:06 +00:00
apikeys_test.go satellite/{console, db}: endpoint to get all API key names by project ID 2023-06-13 13:52:30 +00:00
apikeys.go satellite/{console, db}: endpoint to get all API key names by project ID 2023-06-13 13:52:30 +00:00
auth_test.go satellite/console: add CORS middleware to satellite UI and API 2023-06-23 17:46:44 +00:00
auth.go satellite/console: add CORS middleware to satellite UI and API 2023-06-23 17:46:44 +00:00
buckets_test.go satellite/buckets: move Bucket definition 2023-04-13 17:55:40 -04:00
buckets.go satellite/{console,web}: make bucket endpoints support publicID 2023-02-13 23:00:03 +00:00
common.go private/web,satellite/console/.../consoleapi: serve rate limiting errors as JSON 2022-11-23 17:56:07 +00:00
payments_test.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
payments.go satellite/{consoleapi,web}: limit user input 2023-06-05 11:43:56 +00:00
projects.go satellite/console: add endpoint to get invite link 2023-06-21 16:08:50 +00:00
usagelimits_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
usagelimits.go private/web,satellite/console/.../consoleapi: serve rate limiting errors as JSON 2022-11-23 17:56:07 +00:00