Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
## Cors Support ##

CORS Support

Hi All,
I'm running a self-hosted ClearML server and I want to enable CORS on the fileserver, specifically
Access-Control-Expose-Headers: "Accept-Ranges"
I see that there is a CORS setting in /opt/clearml/config/apiserver.conf , but it is limited to these settings:

cors {
origins: "*"

# Not supported when origins is "*"
supports_credentials: true
}

Any idea how to add headers settings? (add header and expose header)
thanks,

  
  
Posted one year ago
Votes Newest

Answers 4


SuccessfulKoala55 - Ok, new question that might focus this down:

I want to be able to query the fileserver using HTTP URLs that have "Accept-Ranges" in the header. I exposed this in the apiserver.conf but this does not affect the file server, only the web-server. Any chance to add a fileserver.conf to enable this functionallity?

  
  
Posted one year ago

Well, we always welcome contributions 🙂

  
  
Posted one year ago

Thanks SuccessfulKoala55 - I will take a look. It is worth adding this information somewhere in the documentation though 🤓

  
  
Posted one year ago

Hi HugeArcticwolf77 , this configuration dict basically goes to the Flask-CORS plugin, with the following initialization options: https://flask-cors.corydolphin.com/en/latest/api.html

  
  
Posted one year ago
614 Views
4 Answers
one year ago
one year ago
Tags