-
Notifications
You must be signed in to change notification settings - Fork 4
Support CORS #28
Comments
In the future the querying domains (Beacon Aggregators) will be fetched from a Beacon Registry API, and therefore we should be able to set up CORS for multiple domains. I tested this, and it worked in the following manner:
The CORS rules must be added in the server initialisation phase. We could test this by setting up a few |
We should be able to control this list of domains, without much hassle, preferably on the fly :) but yeah, if there is an idea add it. We might need to do it custom if that is the case, a basic idea: https://gist.github.com/espretto/919a64d6a48e06da0fcf26ea70a50a93 (first google result :) ) |
Uh oh!
There was an error while loading. Please reload this page.
Description
As per: https://github.com/ga4gh-beacon/specification/blob/develop/beacon.md#cors
This might be of use: https://github.com/aio-libs/aiohttp-cors
Utilised in
beacon_aggregator
https://github.com/CSCfi/beacon-openshiftDoD (Definition of Done)
Support for CORS implemented.
Testing
Unit Tests .
The text was updated successfully, but these errors were encountered: