Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.6k stars 635 forks source link

Facing error on Modify Document #1561

Open syedbasitali30 opened 8 months ago

syedbasitali30 commented 8 months ago

What were you trying to do?

I am trying to edit the existing pdf file available in my react js source code. But receive error. Error Given Blow

Access to fetch at 'https://www.google.com/drive/' (redirected from 'http://localhost:3008/path/to/your/file.pdf') from origin 'http://localhost:3008' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled

How did you attempt to do it?

I am trying to edit the existing pdf file available in my react js source code. But receive error.

What actually happened?

I am trying to edit the existing pdf file available in my react js source code. But receive error.

What did you expect to happen?

I am trying to edit the existing pdf file available in my react js source code. But receive error.

How can we reproduce the issue?

I am trying to edit the existing pdf file available in my react js source code. But receive error.

Version

1.17.1

What environment are you running pdf-lib in?

Browser

Checklist

Additional Notes

I am trying to edit the existing pdf file available in my react js source code. But receive error.

TicNovation commented 3 months ago

Did you manage to solve it? I have the same error