aio-libs / aio-libs/aiohttp-cors
Is it possible to return `Access-Control-Allow-Origin: *` in response to preflight request instead of existing `Origin` header?
Abierto
- Lenguaje dominante
- Python
- Estrellas
- 220
- Forks
- 61
- Merge medio
- 2 min
- PR fusionados (30 d)
- 3
Descripción
I'm developing figma plugin and figma uploads plugins html from local filesystem, in this case, all requests will have 'Origin: null' header and thus `Access-Control-Allow-Origin` will have `null`, which, in turn, leads to CORS error in browser. I've checked [preflight_handler.py](https://github.com/aio-libs/aiohttp-cors/blob/71b9966d2d76d82ccd9a7fd1df6d609e2ada9d43/aiohttp_cors/preflight_handler.py#L45) source and did not found any way to change usage of existing `Origin` header value to externally defined one(`*`). Am I missing something?
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.