Skip to content

Expose filename header in model training api #6075

Closed
@Ezhvsalate

Description

Rasa version: Rasa 1.10.1

Python version: 3.6.9

Operating system: Ubuntu 18.04.3 LTS (Bionic Beaver)

Issue:

I train a model using HTTP /model/train API and want to get a trained model filename as response header as defined in docs.

Unfortunately it seems like I can't do this: browser doesn't see response 'filename' header.
All I get are following:

HTTP/1.1 200 OK
Connection: keep-alive
Keep-Alive: 5
Access-Control-Allow-Origin: http://localhost:3000
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: content-type
Access-Control-Max-Age: None
Access-Control-Allow-Methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT
Vary: Origin
Content-Length: 0

Looks like this is issue about 'Access-Control-Expose-Headers'. Can we add 'filename' to exposed headers?

Metadata

Assignees

No one assigned

    Labels

    area:rasa-oss 🎡Anything related to the open source Rasa frameworktype:bug 🐛Inconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions