Closed adaptingnl closed 3 years ago
Hello I have the same issues,
Richardson
Hi @rchsantos,
I had my lesson about this subject. The CORS errors can be misleading.
When there is some error in your function that is needed for the request, it is possible that you get a CORS error while it has nothing to do with it. I had somewhere in my code return exit
that was messing everything up. So no error in the logs, everything in the CORS settings was right.
My advice, start debugging the complete trail of all the functions the application uses to make the request.
Niels
Hello @adaptingnl,
Thanks for your answer, I'll debbug my code
HI,
First of all thanks for creating this package. Really helpfull.
At this moment I have a problem when uploading a large file (>1mb) from an embedded form. I get the following error:
(index):1 Access to XMLHttpRequest at 'https://development.adapting.io/fileUpload' from origin 'https://www.adapting.nl' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
When a file is smaller then 1mb everything works fine.
What I have tried
The details
The first request
The second request (that fails)
Cors.php
app/http/kernel.php
Hope that someone can help me out, working on this for 2 days now and still don't have any clue what is going wrong.
Thanks in advance and best regards,
Niels