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

Get 404 error with strict-origin-when-cross-origin in nuxt3 #47

Open
sek-MiraiMinds opened this issue Jan 9, 2024 · 3 comments
Open
Assignees

Comments

@sek-MiraiMinds
Copy link

sek-MiraiMinds commented Jan 9, 2024

Describe the bug
I tried to use this lib in nuxt3, there is no syntax error. but when trying to request any doc or auth method, the request failed with error code 404 not found with strict-origin-when-cross-origin

If I try with the axios or fetch, it is working fine.

To Reproduce
Steps to reproduce the behavior:

  1. Setup nuxt3 project
  2. Setup frappe bench, create site
  3. try to login into frappe from nuxt3 using frappe.auth()

Expected behavior
There must be no error, and should get response

Screenshots
image

Environment (please complete the following information):

  • MacOs
  • chrome
@sek-MiraiMinds
Copy link
Author

sek-MiraiMinds commented Jan 9, 2024

I am using url as: http://payment.localhost:8000

in my site_config.json

{
  "db_name": "",
  "db_password": "",
  "db_type": "mariadb",
  "ignore_csrf": 1,
  "allow_cors": "*"
}

@nikkothari22
Copy link
Member

Hey @sek-MiraiMinds - sorry this slipped my notifications.

Can you share your FrappeApp configuration? Are you passing in a URL to it.
Can you also share your Axios/Fetch call for reference?

Thanks!

@pchaow
Copy link

pchaow commented Mar 13, 2024

I want a way to config x-frappt-site-name headers It transfer to wrong site

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

3 participants