How to prevent sending custom value to CORS disabled API?
I get a photo(image file) from my user. I can access to their camera and they will take a photo and send that photo for me. Codes are written in JavaScript. In my API, CORS is disabled and only requests from my site are valid. I want to be sure that photo which i will get it, is a photo that is taken via camera(codes are written in JS). I want to get an image from API endpoint. That value is get from user camera and will be send via ajax request. Can user send custom value to API if CORS is disabled? I know that client side user can access JS codes via browser inspector, but can user change JS
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.