[PLINK-157] - CORS preflight request should not be blocked by Basic or Digest auth

Improved unit tests. We need to add now some integration tests for this feature.