[Webkit-unassigned] [Bug 232088] New: Web Inspector:

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 21 09:03:43 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=232088

            Bug ID: 232088
           Summary: Web Inspector:
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: macOS 11
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Accessibility
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rajdeep91 at outlook.com
                CC: andresg_22 at apple.com,
                    webkit-bug-importer at group.apple.com

Created attachment 442035

  --> https://bugs.webkit.org/attachment.cgi?id=442035&action=review

Http Cookie on Edge vs Safari

I am using node express server to set a httpOnly cookie on localhost:3000. I can see cookie setting on other browsers but not on Safari. 


Here is HTML code: 

<html>
    <head>
        <title> CGID Beta </title>
        <script src="https://assets.adobedtm.com/43cf45b098bd/38a98b49e24d/launch-5d7d0d6eb58d-development.min.js" async></script>
    </head>
    <body>
        <br><br><br>
        <h1><center>Welcome to CGID beta program</center></h1><br><br><br><br>
        <h3><center>To set a http only cookie click the below button</center></h3><br><br><br>
        <center>
            <form method="post" action="/">
                <button type="submit">CLICK ME</button>
          </form>
        </center>
    </body>
</html>


Here is node server-side code:

const express = require("express");
const bodyParser = require("body-parser")
const cookieParser = require('cookie-parser');
const { v4: uuidv4 } = require('uuid');

const app = express();

app.use(cookieParser());

app.use(bodyParser.urlencoded({
    extended:true
}));

app.get("/", (req, res) => {
  res.sendFile(__dirname + "/index.html");
});

app.post("/", function(req, res) {
    res.cookie('CGID', uuidv4(), {
        maxAge: 60*60*24*30*13, 
        httpOnly: true, 
        secure: true, 
        sameSite: "lax",
        domain: 'localhost',
        path: '/',
    }); 
    //res.send("<h2>CGID is now set</h2>")
});

app.listen(3000, () => {
    console.log("Application started and Listening on port 3000");
  });

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211021/81b38a20/attachment.htm>


More information about the webkit-unassigned mailing list