stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

add ajax whitelist domain option to make calls even if skip third party is turned on #520

Closed incognitosj closed 3 years ago

incognitosj commented 3 years ago

Right now all requests are blocked if skipThirdPartyRequests is set to true. Added ajaxDomainWhitelist option to specify list of domains which will be allowed even if skipThirdPartyRequests is true. Allows to make ajax calls to our own api's while blocking third party libraries/scripts