I'm trying to load a partialview from a JQuery load function
The above basically calls a Load Action from Codes Controller
This works when accessing the Web Application on an internal Network but not when it get access from the internet. Here are the steps I did on investigation:
- Enable CORS on the IIS (web.config) and on the Code (AspNetCore.Cors)
- Use JQUERY to enable CORS (using crossDomain:true)
- Enable Network Discover on the Windows Server
- I even tried putting the _Load.cshtml into the SHARED folder and calling the load directly without the path but still didn't work.
This question is linked to the question I posted but the CORS suggestion doesn't work.My Other Question
Aside from using the load, as mentioned, I have tried using $.ajax and output the error but I'm getting
readystate 0 status 0 statustext error ajax
Many thanks in advance.
------------------UPDATE----------------------
This is calling the URL directly as mentioned
------------------UPDATE 2----------------------
When calling from $.ajax, I put e.preventDefault();
Error showing in Chrome