J
J
Jacket2021-06-28 22:38:27
htaccess
Jacket, 2021-06-28 22:38:27

Why is the header not being added when requesting files?

There is a sub.example.com subdomain, in its .htaccess folder like this:

<IfModule mod_headers.c>
    Header add Access-Control-Allow-Origin "*"
</IfModule>


When sub.example.com is requested, the Access-Control-Allow-Origin header is added, but when a file is requested, such as sub.example.com/image.jpg , this header is no longer present.

What am I doing wrong? How can I add a title?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question