Skip to content
Loading
+2
  • +2
    Sachin sir same issue found
    +2
  • +2
    1. Request URL:
      https://localhost:44344/APICallFile?handler=APIOption
    2. Request Method:
      GET
    3. Status Code:
      401
    4. Remote Address:
      [::1]:44344
    5. Referrer Policy:
      strict-origin-when-cross-origin   -- This error
    +2
  • Sachin Singh
    +2
    Your Authentication service is blocking it. Ask your TL about the settings in startup.cs servicess.AddAuthentication({ what settings are listed here?})
    +2
  • +2
    I have add cors this error face
    Unable to resolve service for type 'Microsoft.AspNetCore.Cors.Infrastructure.ICorsService' while attempting to activate  
    +2
  • +2

    Same error. I'm tired

    +2
  • +2
    Sir I have already add this but not working.
    +2
  • +2
    Note- I have call this function after login it's working but before login not working I have call this function in registration page.
    +2
  • +2
    Sir Please let me know how to check authentication settings 
    +2
  • +2
    Please anybody help me
    +2
  • Jignesh Kumar
    +2
    can you please share you startup.cs ? it will help to identify
    +2
  • Gajendra Jangid
    +2

    Try to send your http header with username and password as Basic Authentication method

    I tried this method on Jquery ajax call
    1. var settings = {  
    2.       "async": true,  
    3.       "crossDomain": true,  
    4.       "url": "https://immense-depths-6983.herokuapp.com/search?search=94305",  
    5.       "method": "GET",  
    6.       "headers": {  
    7.         "authorization": "Basic YWRtaW46cGFzc3dvcmQ=",  
    8.         "cache-control": "no-cache",  
    9.         "postman-token": "54733c33-4918-811b-3987-69d6edeaa3a0"  
    10.       }  
    11.     }  
    12.   
    13. $.ajax(settings).done(function (response) {  
    14.   console.log(response);  
    15. });  
     
    +2