D
D
Dmitry Sudarkin2019-04-20 14:10:59
CORS
Dmitry Sudarkin, 2019-04-20 14:10:59

Does CORS have limits on the weight of the transmitted request?

Set up CORS on Laravel. Everything works, except for one moment. When I send a POST request with a file (.jpg) of about 130 kb, the browser gives an error

Access to XMLHttpRequest at 'Сайт 2' from origin 'Сайт 1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Could CORS be the reason, or is it more likely the PHP settings?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question