【发布时间】:2022-11-02 03:05:10
【问题描述】:
我尝试使用“来源”来使用多域访问,我已经配置了 cypress.config.js 但仍然有:
cy.origin() 需要启用 ExperimentSessionAndOrigin 标志
我的 cypress.config.js :
const { defineConfig } = require('cypress') module.exports = defineConfig({ chromeWebSecurity: false, e2e: { setupNodeEvents(on, config) { // implement node event listeners here, experimentalSessionAndOrigin: true }, }, });谢谢帮助! 问候
【问题讨论】:
标签: cypress cross-domain