incognito popup tab
Unanswered
American black bear posted this in #help-forum
American black bearOP
is there a way to open an incognito popup tab? (meaning a popup tab without any cookies)
any workaround or suggestion would be appreciated
any workaround or suggestion would be appreciated
15 Replies
Maybe use an iframe with the sandbox attribute to disable all cookies
Then build a popup using js/css/html
And embed the iframe inside of it
I don’t think you will be able to open an incognito page natively in the browser through JavaScript
@linesofcode I don’t think you will be able to open an incognito page natively in the browser through JavaScript
American black bearOP
yeah i cant i already searched everywhere
i need to open a url in the popup to be more clear, can i open one in the iframe? (probably a dumb question)
You can pass any url to the iframe
And if the content policy of the page allows loading in an iframe (most do)
Then it will render in it
American black bearOP
amazing, will try this solution right now, thank you so much!
@linesofcode Good luck.
American black bearOP
weird, it is giving me "refused to connect" for every url i use, even urls like youtube videos...
@linesofcode https://www.npmjs.com/package/react-iframe
American black bearOP
do i need to add something else to my code or is this enough?
Sun bear
I am not a programmer myself, so take what I say with a grain of salt, but after a quick look on Google I was able to find this post, hope it helps: https://stackoverflow.com/questions/52768239/its-possible-open-page-without-cookies-in-javascript
Also, you're probably doing something wrong if you need to be able to do that, you're most likely trying to do something in a way that is not supposed to be done.
If you need to be able to do that due to the way you designed your logic flow then there's most likely a fault in the way you designed that in the first place.
Something somewhere is not supposed to work like that basically, or to put it more clearly:
If that functionality that you're seeking is the answer to the issue you're trying to solve then you are most likely asking the wrong question in the first place.
I think it would be wise to reconsider why you need to do that in the first place.
Hope I am making sense here.
If you really are sure you need to be able to do that and there's no way around it then you can try to look for a solution.
Maybe someone else can provide a better answer, good luck!
Also, you're probably doing something wrong if you need to be able to do that, you're most likely trying to do something in a way that is not supposed to be done.
If you need to be able to do that due to the way you designed your logic flow then there's most likely a fault in the way you designed that in the first place.
Something somewhere is not supposed to work like that basically, or to put it more clearly:
If that functionality that you're seeking is the answer to the issue you're trying to solve then you are most likely asking the wrong question in the first place.
I think it would be wise to reconsider why you need to do that in the first place.
Hope I am making sense here.
If you really are sure you need to be able to do that and there's no way around it then you can try to look for a solution.
Maybe someone else can provide a better answer, good luck!