newrelic / newrelic-browser-agent

New Relic Browser Agent
Apache License 2.0
84 stars 44 forks source link

NR cloud doesn't have CORS headers #1151

Closed minecrawler closed 2 months ago

minecrawler commented 2 months ago

Description

I wanted to add this to a PoC project and later to our corporate websites, however after following the installation guide for the npm v1.264, I only get a CORS error. CORS is baseline web security and has been for a while. If we want to use NR, it has to deliver CORS headers.

Steps to Reproduce

Follow installation instructions from README and try to use it.

Expected Behavior

NR cloud offers a setting to configure my custom domains (e.g. localhost and www.example.com), which will be sent as CORS allow header for my tracking config. No CORS errors are logged in the browser and I can see my tracking data in the dashboard

Relevant Logs / Console output

image

Your Environment

Additional context

using NextJS, but that shouldn't impact CORS...

workato-integration[bot] commented 2 months ago

https://new-relic.atlassian.net/browse/NR-303446

patrickhousley commented 2 months ago

@minecrawler which endpoint(s) are missing the CORS headers? The image provided cut off part of the URL.

patrickhousley commented 2 months ago

Hi @minecrawler we have not heard back from you on this issue. If you are still having issues, I recommend reaching out to New Relic support via https://support.newrelic.com/s/