当前位置:网站首页>uni-app - Refused to display ‘xxx‘ in a frame because an ancestor violates the following Content Sec
uni-app - Refused to display ‘xxx‘ in a frame because an ancestor violates the following Content Sec
2022-07-25 09:11:00 【Wang Jiabin】
Error reason
In terms of the overall process , Is to pass the web page
web-viewThe component is embedded intoAppin ( Non applet ), There is a need to jump to wechat official account , Unexpectedly, I received the following error report .
I'm not packing applets , Just shell one App , I wonder why I reported an error .
The following error is reported uni-app Built in browser , preview H5 Occurs when the end :
Refused to display 'https://xxx' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'

At the end of the day iframe Homology strategy problem .
Solution
Be careful : Only for packaging Non applet side , If you package the applet side, you must configure the white list in the background ( That's for sure ).
This is because uni-app The reason for the built-in browser , That's why this problem .
You normally pack it into App after , There will be no such problem .
therefore , Just pack it directly , After that, I won't have this error report .
边栏推荐
- Read and write models and organize notes
- Solving a random number problem
- 附加:下半部分sql语句 区/县(数据表)
- JDBC快速入门
- Practice of establishing dynamic programming state transition equation
- js触屏小游戏源码冰雪之旅
- Wechat applet ordering system graduation design of applet completion works (2) applet function
- 51单片机外设篇:电机
- NFT guide for musicians
- Additional: in the lower division / county (data sheet)
猜你喜欢
![[NPM] the](/img/ae/efccefae0323a1f6a425523e01d2ac.png)
[NPM] the "NPM" item cannot be recognized as the name of cmdlets, functions, script files or runnable programs. Please check the spelling of the name. If the path is included, make sure the path is co

51单片机外设篇:电机

51 MCU internal peripherals: serial port communication

The simplest sklearn environment configuration tutorial in the whole network (100% success)

神经网络学习(1)前言介绍

Wechat sports ground reservation applet graduation design of applet completion works (2) applet function

Wechat reservation applet graduation design of applet completion works (1) development outline

js弹出式城市筛选组件匹配手机移动端

Neural network learning (1) Introduction

360度拖拽全景图插件tpanorama.js
随机推荐
js弹出式城市筛选组件匹配手机移动端
51 MCU peripherals: Motor
Solve NPM error: cannot find module 'shelljs‘
Solve the syntaxerror: unexpected end of JSON input
Redis learning notes
机器人跳跃问题
[deep learning] overview | the latest progress of deep learning
为什么要使用MQ消息中间件?这几个问题必须拿下!
优炫数据库对数据的加密是如何做的?
51单片机外设篇:电机
Wechat reservation of completed works of applet graduation project (4) opening report
JDBC的api全解
Neural network learning (1) Introduction
[stl]stack & queue simulation implementation
黑马程序员JDBC
How does Flink SQL persist?
Es source code reading (I) "suggestions collection"
Oracle10g单实例数据库升级到哪个版本好,求建议
The operation cannot be completed because a folder or file in it is already open in another program
JDBC快速入门