-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-cdn.html
More file actions
34 lines (30 loc) · 1.34 KB
/
Copy pathtest-cdn.html
File metadata and controls
34 lines (30 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="fr">
<!--
Fichier de test pour le web component CDN <sqljob-app>.
⚠️ NE PAS ouvrir via file:// si les cellules iframe embarquent du contenu
externe (cartes Carto, OpenStreetMap, etc.).
La raison : file:// donne une origine "null" à la page. Les CSP
frame-ancestors des sites tiers excluent explicitement null → connexion
refusée par le navigateur.
✅ Pour tester le build CDN avec iframes externes, utiliser un serveur HTTP :
npm run dev:cdn → http://localhost:5174/test-cdn.html
(ou npm run dev → http://localhost:5173/test-cdn.html)
Usage production CDN :
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sqljob/dist-cdn/sqljob.css">
<script src="https://cdn.jsdelivr.net/npm/sqljob/dist-cdn/sqljob.js" type="module"></script>
Usage test local (après npm run build:cdn) :
<link rel="stylesheet" href="./dist-cdn/sqljob.css">
<script src="./dist-cdn/sqljob.js" type="module"></script>
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>sqljob CDN test</title>
<link rel="stylesheet" href="./dist-cdn/sqljob.css">
</head>
<body>
<script src="./dist-cdn/sqljob.js" type="module"></script>
<sqljob-app></sqljob-app>
</body>
</html>