File upload CORS issue

Hi guys , I created a File uploader API based on AdonisJS and it works well on Postman but when I used react.js in the client it says CORS policy not allowed. In my config I allowed all in the cors.js.

Please help.


Can you share your exact CORS error?
Also try to change origin in config/cors.js to true or β€œ*”. There was some case where β€œ*” was not allowed, but I can’t remember the exact reason or error.

1 Like