Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS Block happen #27

Open
lakminagamage opened this issue Dec 28, 2023 · 3 comments
Open

CORS Block happen #27

lakminagamage opened this issue Dec 28, 2023 · 3 comments

Comments

@lakminagamage
Copy link

Describe the bug
I followed all the given guide and now its returning me an error.

Access to fetch at 'https://script.google.com/macros/s/AKfycbyKEXa4GFAV60DeRC-8eMmlgbLOK1BU40FzS4oaEL7dlb2nCgT_WG17a-nDGPvOccpPXA/exec' from origin 'https://ordereka.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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

To Reproduce
Steps to reproduce the behavior:
1.same as given guide.
Expected behavior
Should update the google sheet

Screenshots
image

Desktop (please complete the following information):

  • OS: MACOS
  • Browser: Brave
@ninbit
Copy link

ninbit commented Jan 11, 2024

if you use doGet, try using doPost.

@harshilsharma63
Copy link

Are you making the request manually or it the default form submittion? It works fine for me both ways. Try setting mode to no-cors. That worked for me.

@yashi-15
Copy link

yashi-15 commented Aug 3, 2024

Describe the bug I followed all the given guide and now its returning me an error.

Access to fetch at 'https://script.google.com/macros/s/AKfycbyKEXa4GFAV60DeRC-8eMmlgbLOK1BU40FzS4oaEL7dlb2nCgT_WG17a-nDGPvOccpPXA/exec' from origin 'https://ordereka.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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

To Reproduce Steps to reproduce the behavior: 1.same as given guide. Expected behavior Should update the google sheet

Screenshots image

Desktop (please complete the following information):

  • OS: MACOS
  • Browser: Brave

Hey, I am getting the same issue and even setting mode to no-cors is not solving the problem. Do you have any solution?

abdohwebdev added a commit to abdohwebdev/html-form-to-google-sheet that referenced this issue Sep 26, 2024
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

No branches or pull requests

4 participants