riccox / meilisearch-ui

😎 An open-source, pretty, simple and fast ⚡ meilisearch admin dashboard UI for managing your meilisearch instances 🕹
https://meilisearch-ui.riccox.com
Apache License 2.0
400 stars 52 forks source link

Document CORS settings with docker #130

Closed tacman closed 1 month ago

tacman commented 1 month ago

I'm getting an error running my local server, though that server works with my PHP client, so I'm almost sure it's a CORS error.

I'm running with a simple docker setup:

    meilisearch:
        image: getmeili/meilisearch:v1.10
        container_name: 'meilisearch'
        ports:
            - 7700:7700
        volumes:
            - ./.docker/meili/:/meili_data/
        environment:
#            - MEILI_MASTER_KEY=MeiliKey
            - MEILI_NO_ANALYTICS=true
            - MEILI_TASK_WEBHOOK_URL=http://localhost:8002/meili

Can you document how this is supposed to be configured so that the ui can access it?

riccox commented 1 month ago

@tacman You should check what you are using.

Could you give more informations? This looks not Meilisearch-UI.

tacman commented 1 month ago

I'm just using your demo at https://meilisearch-ui.riccox.com/

It won't let me log into my server on localhost, or my live server (tried with https too).

image

tacman commented 1 month ago

image

riccox commented 1 month ago

@tacman This error is caused by Content-Security-Policy.

You are trying to connect a http(no ssl) host by my demo site (running with ssl).

To fix that, you need to use a host endpoint with ssl or you can try the latest version (v0.7.2) which has fixed this already.

tacman commented 1 month ago

Thanks!