L
L
Levingstone2019-09-24 15:04:42
JavaScript
Levingstone, 2019-09-24 15:04:42

CORS problem. How to decide?

Hello. With get, put requests, a CORS restriction for firebase pops up. I tried to add cors.json - did not help. I'm trying to upload user pictures.
Please describe how to solve this problem?
5d8a064ecc707189546684.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Alexandrovich, 2019-09-24
@RomReed

as an option https://alfilatov.com/posts/run-chrome-without-cors/

I
ivandao, 2019-09-24
@ivandao

Firebase should insert view headers in the response:

'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'DELETE,GET,PATCH,POST,PUT',
'Access-Control-Allow-Headers': 'Content-Type,Authorization,origin,accept'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question