diff --git a/.github/workflows/build-status.yml b/.github/workflows/build-status.yml index ffa80517d6f..a34151a7067 100644 --- a/.github/workflows/build-status.yml +++ b/.github/workflows/build-status.yml @@ -546,7 +546,7 @@ jobs: - name: Configure custom headers run: | echo "/*" > artifacts/_headers - echo " Content-Security-Policy: default-src 'none'; img-src 'self' data: badge.fury.io *.cloudfront.net img.shields.io raw.githubusercontent.com www.netlify.com api.securityscorecards.dev bestpractices.coreinfrastructure.org www.bestpractices.dev cdn.bsky.app;connect-src *.algolia.net *.algolianet.com public.api.bsky.app;script-src 'self' 'unsafe-inline' 'unsafe-eval';frame-src *.codesandbox.io www.youtube-nocookie.com; style-src 'self' 'unsafe-inline'; manifest-src 'self'; base-uri fast-check.dev;" >> artifacts/_headers + echo " Content-Security-Policy: default-src 'none'; img-src 'self' data: badge.fury.io *.cloudfront.net img.shields.io raw.githubusercontent.com www.netlify.com api.securityscorecards.dev bestpractices.coreinfrastructure.org www.bestpractices.dev cdn.bsky.app;connect-src *.algolia.net *.algolianet.com public.api.bsky.app api.counterapi.dev;script-src 'self' 'unsafe-inline' 'unsafe-eval';frame-src *.codesandbox.io www.youtube-nocookie.com; style-src 'self' 'unsafe-inline'; manifest-src 'self'; base-uri fast-check.dev;" >> artifacts/_headers echo "/api-reference/*" >> artifacts/_headers echo " Content-Security-Policy: default-src 'none'; img-src 'self' data:; connect-src data:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';" >> artifacts/_headers - name: Compress documentation artifacts as zip diff --git a/website/blog/2024-12-01-advent-of-pbt-day-1/AdventOfTheDayBuilder.tsx b/website/blog/2024-12-01-advent-of-pbt-day-1/AdventOfTheDayBuilder.tsx index 7a8b685877f..26b420f0784 100644 --- a/website/blog/2024-12-01-advent-of-pbt-day-1/AdventOfTheDayBuilder.tsx +++ b/website/blog/2024-12-01-advent-of-pbt-day-1/AdventOfTheDayBuilder.tsx @@ -77,6 +77,9 @@ export function buildAdventOfTheDay(options: Options) { } function onSubmit(event: React.SyntheticEvent) { + fetch(`https://api.counterapi.dev/v1/fast-check/AdventOfPBT2024Day${day}Attempt/up`) + .then((response) => response.json()) + .catch(() => {}); event.preventDefault(); try { const answer = extractAnswerFromForm(event); @@ -92,6 +95,9 @@ export function buildAdventOfTheDay(options: Options) { } lastError = null; localStorage.setItem(storageKey, answer); + fetch(`https://api.counterapi.dev/v1/fast-check/AdventOfPBT2024Day${day}Success/up`) + .then((response) => response.json()) + .catch(() => {}); } catch (err) { lastError = `Malformed inputs provided!\n${(err as Error).message}`; }