jeffalo / my-ocular

backend for ocular
https://ocular.jeffalo.net/docs/about#what-iswas-my-ocular
9 stars 10 forks source link

Incorrect CORS header sent to ocular development server #17

Open mxmou opened 3 years ago

mxmou commented 3 years ago

I wanted to run ocular locally without setting up a my-ocular server. I got an error saying that my-ocular.jeffalo.net sent an Access-Control-Allow-Origin header with a value of https://localhost:8000, which doesn't work (the development server obviously doesn't support HTTPS).

jeffalo commented 3 years ago

sorry for seeing this late, i'll have a look.

cors stuff is annoying with https and stuff.

theoretically ocular frontend should mostly work without my-ocular but the parts that need my-ocular will fail. is that what you can see?

mxmou commented 3 years ago

theoretically ocular frontend should mostly work without my-ocular but the parts that need my-ocular will fail. is that what you can see?

Yes - I see the error when visiting the dashboard page.

A workaround that can currently be used it setting up a CORS proxy and setting the backend URL to that, but that isn't meant to be necessary.

jeffalo commented 3 years ago

will look into this.. for now cors proxies should work enough.