Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

My api url is giving me CORS Error in firefox, but in other browser there is no error.

  • Καμία απάντηση
  • 0 έχουν αυτό το πρόβλημα
  • 39 προβολές
more options

My API URL is giving me CORS Error in Mozilla Firefox, but in other browser there is no error. I have tried many methods like changing the about:config but it didn't make any difference. Its been days I am facing this issue. Kindly help. Thanks in Advance.

FRONTEND : Angular. BACKEND : Dotnet core API.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <MY WEB API URL>. (Reason: CORS request did not succeed). Status code: (null). Dotnet code for API services.AddCors(o => o.AddPolicy("MyPolicy", addcors =>

           {
               addcors.AllowAnyOrigin()
                   .AllowAnyMethod()
                   .AllowAnyHeader();
           }));

app.UseCors("MyPolicy");

My API URL is giving me CORS Error in Mozilla Firefox, but in other browser there is no error. I have tried many methods like changing the '''about:config''' but it didn't make any difference. Its been days I am facing this issue. Kindly help. Thanks in Advance. FRONTEND : Angular. BACKEND : Dotnet core API. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <MY WEB API URL>. (Reason: CORS request did not succeed). Status code: (null). '' Dotnet code for API services.AddCors(o => o.AddPolicy("MyPolicy", addcors => { addcors.AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader(); })); app.UseCors("MyPolicy");''
Συνημμένα στιγμιότυπα

Πρέπει να συνδεθείτε στον λογαριασμό σας για να απαντήσετε σε δημοσιεύσεις. Ξεκινήστε μια νέα ερώτηση εάν δεν διαθέτετε ακόμα λογαριασμό.