1. lingaiah T
  2. SnapDevelop
  3. Thursday, 10 December 2020 14:12 PM UTC

Dear All,

When I am trying create a REST API based on below video, exactly I am following, when I link my API,  Getting error like below :

fetch cors header ‘access-control-allow-origin’ missing.................

Any one can advise, how to resolve this?

 

Thanks in advance.

Using: For API , snap development tools

framework: quasar 

below link.

Step-by-Step Design of a Modern UI using JavaScript Frameworks for calling C# REST APIs

(https://www.youtube.com/watch?v=HRKNPA1EM_o&feature=emb_logo)

if anyone have same project please share to me 

 

Thank you very much

lingaiah T Accepted Answer Pending Moderation
  1. Saturday, 12 December 2020 06:12 AM UTC
  2. SnapDevelop
  3. # 1

Thank you for your support. May be your link also one of the method to resolve my issue, instead of this I have commented "HTTP REDIRECTION" line in the  Startup.cs class.

now it's working fine. may be this is right or wrong method I don't know which I done.

Any Thanks a lot, I will go through your idea, if any issue let you know.

 

Once again Thank you...

Comment
There are no comments made yet.
armando herrera @Appeon Accepted Answer Pending Moderation
  1. Thursday, 10 December 2020 20:06 PM UTC
  2. SnapDevelop
  3. # 2

Hi Lingaiah,  

What it may be happening is that you are trying to reach a hosting server in a cross-origin resource.

You can try using the HTTP header Access-Control-Allow-Origin - 

A returned resource may have one Access-Control-Allow-Origin header, with the following syntax:

Access-Control-Allow-Origin: <origin> | *

You can read more about it in the following link :

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

I hope it works for you!

Regards!

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.