Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAT-12111] Add Access-Control-Max-Age header #2160

Open
wants to merge 4 commits into
base: next
Choose a base branch
from

Conversation

AnastasiiaSvietlova
Copy link
Contributor

@AnastasiiaSvietlova AnastasiiaSvietlova commented Jun 14, 2024

Goal

Add the Access-Control-Max-Age response header to CORS POST requests sent to https://notify.bugsnag.com/. Without this header, preflight responses are only cached for 5 seconds.

Changeset

Added Access-Control-Max-Age header to delivery.sendEvent

Testing

Update existing unit test

Copy link

github-actions bot commented Jun 14, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 44.21 kB 13.51 kB
After 44.26 kB 13.54 kB
± ⚠️ +51 bytes ⚠️ +24 bytes

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against d4d747d

@AnastasiiaSvietlova AnastasiiaSvietlova changed the title added Access-Control-Max-Age header to delivery.sendEvent [PLAT-12111] Add Access-Control-Max-Age header Jun 14, 2024
@AnastasiiaSvietlova AnastasiiaSvietlova marked this pull request as ready for review June 14, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants