Search code examples
csshttprequestcss-import

Does a CSS @import expose the users IP address?


When doing a @import from a external third party URL inside a CSS file, which data client data will be exposed to the third party?

I’m not quite sure if the third party will be able to see my visitors IP address which would be interesting in terms of GDPR.

Any help would be appreciated!


Solution

  • Yes.

    CSS is parsed client-side. An instruction to fetch additional CSS from another URL will have to be carried out client-side. The users' browsers will make HTTP requests to the URL.