Js cross-domain request problem

without any processing, directly use the ajax request of Jquery to request the interface created in www.easy-mock.com, and the request is successful. But I wonder, shouldn"t I be doing this as a cross-domain request, and why I can succeed directly

Mar.11,2022

Cross-domain success depends on the server


he added CORS, to allow cross-domain access


access-control-allow-origin should be set to *.

Menu