Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230993

Build/main.js in PWA has all the source code! How to protect my PWA?

$
0
0

I solved it.
I created “.haccess” file inside “build” directory:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^https://(.+.)?mywebsite.com/ [NC]
RewriteRule .*.(js|css|map)$ - [F]


Viewing all articles
Browse latest Browse all 230993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>