Skip to content

Tenant token demo not working #213

@Strift

Description

@Strift

The tenant token demo fails because when the app calls this endpoint: https://tenant-token-backend.meilisearch.com/create-tenant-token.

It appears to be a CORS error

Error

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://tenant-token-backend.meilisearch.com/create-tenant-token?value=John. (Reason: CORS request did not succeed). Status code: (null).

Uncaught (in promise) Error: Network Error
    exports createError.js:16
    onerror xhr.js:117
    exports xhr.js:114
    exports xhr.js:15
    exports dispatchRequest.js:58
    request Axios.js:108
    exports bind.js:9
    e index.js:9
    l runtime.js:63
    _invoke runtime.js:294
    S runtime.js:119
    Babel 4
    ta index.js:6
    e CreateToken.jsx:23
    l runtime.js:63
    _invoke runtime.js:294
    S runtime.js:119
    Babel 4
    f CreateToken.jsx:10
    React 11
    unstable_runWithPriority scheduler.production.min.js:18
    React 3
[createError.js:16:15](https://tenant-token.meilisearch.com/static/node_modules/axios/lib/core/createError.js)
    Babel 6
    f CreateToken.jsx:10
    React 11
    unstable_runWithPriority scheduler.production.min.js:18
    React 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions