TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do I get Ajax working with a Bookmarklet?

2 点作者 wesleyzhao将近 14 年前
Hi everyone!<p>I am trying to write a Bookmarklet and the goal is to be able to submit information from any site X (the origin page they are on when clicking the bookmarklet) to my site's servers while staying on site X.<p>Ideally, I would be able to send a response back and have it pop up somewhere but this is not necessary.<p>I keep running into the issue of the same origin policy -- that from site X, XMLHttpRequests can only be initiated with site X's domain.<p>Does anyone know of a way around this (or a tutorial they can point me to)? some Ajax with a Bookmarklet?<p>Thanks so much!<p>-Wesley

1 comment

hrasm将近 14 年前
You might want to ask such tech-related questions at stackoverflow.com.