0

I created an sdk. When the css file is to be loaded, it gives this error.

The css file includes a .woff2 url for the font.

Even after removing that part of the code, the error persists.

I don't know how to handle this. Please help.

Winter
  • 341
  • 1
  • 4
  • 8

2 Answers2

0

This is a .htaccess header. Red more here.

You have to remove this header in order to access this file.

Or set it to:

Access-Control-Allow-Origin: *
Noel Schenk
  • 724
  • 1
  • 8
  • 19
0

Adding:

add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';

in the nginx config file in the respective location block solved the problem.

Winter
  • 341
  • 1
  • 4
  • 8