πŸ‡¦πŸ‡ΊAustralia @thinkingcap

Account created on 22 October 2009, over 14 years ago
#

Recent comments

πŸ‡¦πŸ‡ΊAustralia thinkingcap

Thanks for the tip. Confirming that we have Vue 2 working with the 3.x version of this module.

composer require npm-asset/vue:^2

and in config/vuejs.settings.yml the path is changed to /libraries/vue/dist/vue.min.js:

libraries:
  vue:
    installation: local
    development: false
    version: 3.2.37
    cdn: unpkg
    path: /libraries/vue/dist/vue.min.js
  petitevue:
    installation: local
    development: false
    cdn: unpkg
    version: 0.4.1
    path: /libraries/petite-vue/dist/petite-vue.iife.js

πŸ‡¦πŸ‡ΊAustralia thinkingcap

I notice that this was being discussed on GitHub: https://github.com/cypress-io/cypress/issues/26398 and added my solution over there: https://github.com/cypress-io/cypress/issues/26398#issuecomment-1847112026

Copied here for convenience:

I got this working by intercepting the Set-Cookies header and enforcing SameSite=None; Secure.

    cy.intercept('*', (req) => {
      req.on('response', (res) => {
        const setCookies = res.headers['set-cookie'];

        if (setCookies) {
          res.headers['set-cookie'] = (
            Array.isArray(setCookies) ? setCookies : [setCookies]
          )
            .map((cookie) => {
              // Override or add SameSite=None
              if (cookie.includes('SameSite')) {
                cookie = cookie.replace(/SameSite=(Lax|Strict|None)/i, 'SameSite=None');
              } else {
                cookie = `${cookie}; SameSite=None`;
              }

              // Add Secure if not present
              if (!cookie.includes('Secure')) {
                cookie = `${cookie}; Secure`;
              }

              return cookie;
            });
        }
      });
    });

    cy.origin('https://ethereal.email', { args: sentArgs }, ({
      userEmail, userPassword, searchSubjectLine,
    }) => {
.
.
.
Production build 0.69.0 2024