Quantcast
Viewing all articles
Browse latest Browse all 230047

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

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 230047

Trending Articles



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