[Solved] vuecli2+axios Error: NotSameOriginAfterDefaultedToSameOriginByCoep

Problem reporting error

Notsameoriginafterdefaultedtosameoriginbycoep
cross domain isolation

Personal environment: vuecli2 + Axios

Solution:
add the following codes in the headers of Axios

        "Cross-Origin-Opener-Policy": "same-origin",
        "Cross-Origin-Embedder-Policy": "require-corp"

And in the devServer of vue.config.js

headers: {"Cross-Origin-Opener-Policy": "cross-origin","Cross-Origin-Embedder-Policy": "require-corp",},

Read More: