blockscout-rs icon indicating copy to clipboard operation
blockscout-rs copied to clipboard

/api/v2/stats has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.

Open moyinzunza opened this issue 3 months ago • 0 comments

I can't set the CORS

I have this error in the frontend image

I ran the backend with mix phx.server

I don't use docker I saw docker-compose/proxy/default.conf.template and I edited that file whit this add_header 'Access-Control-Allow-Origin' '*' always;

but it did not work I supose it's cuz that file is only if you run with docker

someone can help me pls?

Sorry about my english btw it's not my native language

moyinzunza avatar Apr 02 '24 20:04 moyinzunza