• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trouble with is_ajax_request()

#3
Thx insite. I've figured out that as long as I have a tab open to the same server domain, the x-requested-with IS being sent. If I don't have a tab to my domain open, a preflight (rather than the POST) is being sent instead. My next problem is that the CI server code is actually starting up my controller/method. I thought from looking at a flow diagram that the browser/server handled the handshake w/o my code having to deal with it, and then my CI function would wake up when the real POST came in. However if you look at this https://developer.mozilla.org/en-US/docs...d_requests it seems that my CI application must handle the preflight itself(there is sample php code).
proof that an old dog can learn new tricks
Reply


Messages In This Thread
trouble with is_ajax_request() - by richb201 - 01-24-2019, 11:07 AM
RE: trouble with is_ajax_request() - by InsiteFX - 01-25-2019, 04:28 AM
RE: trouble with is_ajax_request() - by richb201 - 01-25-2019, 06:56 AM
RE: trouble with is_ajax_request() - by richb201 - 01-26-2019, 12:42 AM
RE: trouble with is_ajax_request() - by InsiteFX - 01-26-2019, 06:03 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.