Comments (5)
I was under the impression that jQuery/Zepto handled cross-domain requests with jsonp, which was one of the major reasons I went ahead and made the code dependent on them. I'll do some more testing next week.
from sentry-javascript.
Upon further research, I've learned that jQuery handles cross-domain requests with the "Origin" header. If the server responds with an "Access-Control-Allow-Origin" header that matches "Origin", then the cross-domain request is allowed by the browser.
I've submitted a pull request to enable this here: dcramer/sentry#340
from sentry-javascript.
After enabling preflighted cross-domain requests (dcramer/sentry#346), this now works reliably in Chrome, Firefox, and Safari. I haven't tested it in IE yet, but I plan to. My opinion is that this is the modern way to do cross-domain requests, and we should make iframe + form requests a secondary option.
from sentry-javascript.
Are we ok with just using the origin headers and the public key at this point, or do we need to do some additional work in Sentry core?
from sentry-javascript.
This is no longer a concern
from sentry-javascript.
Related Issues (20)
- HttpContext integration not capturing user-agent when using direct client. HOT 2
- I don't receive errors in Sentry but they're logged in the HOT 5
- Transactions for `ui.vue.update` are sometimes created instead of spans HOT 4
- Document reportError as an option for reporting in browsers HOT 3
- BrowserOptions needs to support the TransportOptions generic. HOT 1
- [Next.js] Don't set `experimental.instrumentationHook` for Next.js >= 15
- [Next.js] replayCanvasIntegration Safari issue HOT 2
- @sentry/node throws error HOT 7
- Crash when using `nodeProfilingIntegration()` integration HOT 3
- filesToDeleteAfterUpload : Could not determine source map path (Gatsby) HOT 8
- [Nuxt] beforeSend() is not called HOT 3
- Rename submodule export from `setup`
- Remove `SentryService` from `SentryModule`
- Next.js: Replace Custom Build-Time Instrumentation for **API Routes (app router)** with OTEL instrumentation
- Next.js: Replace Custom Build-Time Instrumentation for **API Handlers (pages router)** with OTEL instrumentation
- Next.js: Instrument browser-back/forward/history for app router
- Next.js: Give App Router Prefetch serverside transactions different op
- Next.js: Upstream removal of "RSC" prefix for navigation transactions HOT 2
- Next.js: Fix "default" op for certain serverside transactions
- Sveltekit: Auto-upload sourcemaps + VitePWA breaks build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-javascript.