Skip to content

Is allow_cors=True supposed to be add ACAO headers for visualisation? #17643

Description

@hexylena

In lib/galaxy/datatypes/display_applications/configs/minerva/tabular.xml we set <param type="data" name="data" url="galaxy_${DATASET_HASH}.tsv" allow_cors="true" />

looking at lib/galaxy/webapps/galaxy/controllers/dataset.py L686 it looks like this is indeed used.
However it doesn't seem to function in a useful way for me.

Looking at the HEAD request, I'm not seeing a ACAO header,

$ curl --silent -H "Access-Control-Request-Method: GET" -H "Origin: https://covid19map.elixir-luxembourg.org" --head https://usegalaxy.org/display_application/f9cad7b01a47213579c3a2b970ae5cfc/minerva_tabular/covid19/3be62212b16e0268/data/galaxy_f9cad7b01a47213579c3a2b970ae5cfc.tsv | grep Access
$

versus EU who have a manual nginx exception for this visualisation (thanks y'all.)

$ curl --silent -H "Access-Control-Request-Method: GET" -H "Origin: https://covid19map.elixir-luxembourg.org" --head https://usegalaxy.eu/display_application/4838ba20a6d867656f60e7ad9f36a860/minerva_tabular/covid19/d3ca1b21b62e6581/data/galaxy_4838ba20a6d867656f60e7ad9f36a860.tsv | grep Access-Con
Access-Control-Allow-Origin: https://covid19map.elixir-luxembourg.org
Access-Control-Allow-Methods: GET
Access-Control-Expose-Headers: Content-Length,Content-Range
Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions