-1

I am creating my personal website, and I am using live-server, but I get the CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource error. So I review the documentation, and they recommend adding --cors flag to enable cors for any origin, I did it, but the same error appears.

By the way, that's happened, especially with the font awesome script kit.

Any solutions do you want to provide me? Thanks before all.

Diesan Romero
  • 1,292
  • 4
  • 20
  • 45

1 Answers1

3

Are these HTML tags? Add crossorigin attribute to the end of your script tag then.

Tushar Shahi
  • 16,452
  • 1
  • 18
  • 39
  • I was forced to use the official CDN instead FontAwesome script kit, but you right. Then, I will use the script kit when I create my own server on express. – Diesan Romero Jun 14 '21 at 20:29