Skip to content

Fix: Enable API support for external clients (CORS, serialization) for browser extension#115

Open
sam22ridhi wants to merge 1 commit intom2b3:mainfrom
sam22ridhi:main
Open

Fix: Enable API support for external clients (CORS, serialization) for browser extension#115
sam22ridhi wants to merge 1 commit intom2b3:mainfrom
sam22ridhi:main

Conversation

@sam22ridhi
Copy link

Hi everyone!
I’ve been building a Chrome extension for SciCommons, and while integrating it I ran into a few backend issues that needed cleanup to support external clients properly.

What I changed:

  • Fixed 500 errors caused by serializers exposing protected user fields.
  • Enabled CORS so browser-based tools (like the extension) can POST data safely.

How I tested this:

  • Clipped an article from Nature/PubMed using the extension
  • Submitted it to the backend
  • Verified it appeared correctly in the Next.js frontend and django backend.

This should make the API more robust for future integrations as well.
Happy to iterate based on feedback!

Some images of clipper extension working:

  • UI of clipper with automatic metadata extraction
image
  • Articles added to frontend - connectivity working with backend
image
  • Final result
image

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.

1 participant