1

Is it possible to detect whether 3rd party cookie is enabled or disabled in a browser setting simple from visiting a site?

Lets say I have a hosted gitpage and I want to detect whether my 3rd party cookie is enabled or disabled via an alert or a console (limitation is that the html page does not have any other hosted url of a different domain within it). Would it still be able to detect just by using the parent domain url?

James Z
  • 12,209
  • 10
  • 24
  • 44
victor
  • 23
  • 1
  • 4

1 Answers1

0

You will not be able to detect 3rd party cookie support, without actually trying to set a 3rd party cookie and read it again, so if you only control a single domain in the scenario you are working in, you are out of luck.

m90
  • 11,434
  • 13
  • 62
  • 112
  • so any workaround as to how can we set a 3rd party cookie and try to read it? within that single HTML file? any JS code for that please – victor Jul 31 '20 at 15:42
  • There's a whole lot of solutions for that here: https://stackoverflow.com/questions/3550790/check-if-third-party-cookies-are-enabled – m90 Jul 31 '20 at 18:03