N
N
netrox2018-08-07 09:30:41
CORS
netrox, 2018-08-07 09:30:41

How to properly configure CORS?

If you add 'www.' to the site URL , then the browser does not load the fonts . I tried but it didn't help I got the following error in the console:
header("Access-Control-Allow-Origin: *");
5b693c8787d27853811050.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hOtRush, 2018-08-07
@hOtRush

header("Access-Control-Allow-Origin: *"); registered in php for sure, and then the web server gives the font.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question