Auth0 هل هي خدمة مدفوعة؟

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1  localhost
#	::1             localhost
	127.0.0.1  sohep.com

هكذا لم يتغير شي

1 Like

نعم هكذا وأيضا احذف المسافات على بداية السطر، بدل:

	127.0.0.1  sohep.com

اجعله

127.0.0.1  sohep.com

والمفترض بعدها يعمل كل شيء

1 Like
Invalid Host header

هذه الرسالة اعطاني اياها المتصفح

1 Like

ممكن تعمل سكرين شوت

1 Like

إذا كنت تستعمل vue، قم بإضافة هذا السطر إلى package.json في قسم scripts:

  "scripts": {
    "serve": "vue-cli-service serve --no-clean", // هذا السطر أكيد موجود
    "serve-local": "vue-cli-service serve --no-clean --host sohep.com",
}

ولما تشغل التطبيق شغله بالأمر npm run serve-local

1 Like

مشي الحال اشتغل على http://sohep.com
لكن لا تزال مشكلة cors ما السبب برأيك؟

1 Like
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://accounts.google.com/o/oauth2/v2/auth?client_id=537985902972-o36t24d3boed3s7opl522ppsg3ct1lm9.apps.googleusercontent.com&scope=email+profile&response_type=code&redirect_uri=http:%2F%2Flocalhost:8080&access_type=offline with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

هذه الرسالة

1 Like

الآن باقي تضيف sohep.com على قائمة الـ domains في google console ثم تضيف الرابط كامل (مع البورت)

Invalid domain: cannot contain port.
1 Like

هناك احتمالين:

  1. يجب أن تشغل https باضافتها إلى السطر تبع serve:
    "serve-local": "vue-cli-service serve --no-clean -https --host sohep.com",
  1. حدد البورت 80 لتشغيل السيرفر لكي لا تضطر إلى استعمال بورت مختلف
    "serve-local": "vue-cli-service serve --no-clean -https --host sohep.com --port 80",

لا تنسى تغيير الرابط الذي تدخل منه بالمتصفح إلى https://sohep.com

1 Like

نفس المشكلة

1 Like

ما رأيك يا صهيب أن تدخل على الخاص لكي نحل المشكلة بإستعمال Team Viewer

1 Like

تمام انا جاهز

1 Like