FIX - Added is_set Instead of Direct IF Command

Problem: Error 500 when using straight IF command without is_set on IIS 8.5

Fix: Use is_set for all origin and requested-with header variables to check to see what variable to use to stop the error 500